Difference between revisions of ":Map"

(United States Test)
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
=Region Map=
 
=Region Map=
==Example 1==
+
==Production Test1==
<mapframe text="Downtown [[wikipedia:San Francisco|San Francisco]]" width=250 height=250 zoom=13 latitude=37.8013 longitude=-122.3988 />
+
<maplink text="North America Region Map" width=800 height=600 zoom=4 latitude=46.468 longitude=-98.723>{
==Example 2==
+
"type": "FeatureCollection", "features":  [
<mapframe text="San Francisco museums" width=350 height=350 zoom=13 latitude=37.8013 longitude=-122.3988>
+
    { "type": "Feature",
{
+
      "properties": {
  "type": "Feature",
+
        "marker-symbol": "-number",
  "geometry": { "type": "Point", "coordinates": [-122.3988, 37.8013] },
+
        "title": "California-North",
  "properties": {
+
        "description": "{{CA_Region}}",
    "title": "[[wikipedia:Exploratorium|Exploratorium]]",
+
        "marker-color": "302060" },
    "description": "[[File:Giant_Mirror_at_the_Exploratorium.jpeg|200px]]",
+
      "geometry": {
    "marker-symbol": "museum",
+
        "type": "Point",
     "marker-size": "large",
+
        "coordinates": [ -119.357, 37.384 ] }},
    "marker-color": "0050d0"
+
     { "type": "Feature",
  }
+
      "properties": {
}
+
        "marker-symbol": "-number",
</mapframe>
+
        "title": "California-South",
==United States Test==
+
        "description": "{{CA_Region}}",
<mapframe text="North America Region Map" width=800 height=600 zoom=4 latitude=46.468 longitude=-98.723 />
+
        "marker-color": "302060" },
 
+
      "geometry": {
==United States Test2==
+
        "type": "Point",
<mapframe text="North America Region Map" width=800 height=600 zoom=4 latitude=46.468 longitude=-98.723 />
+
        "coordinates": [ -117.0597, 32.8036 ] }},
 
+
    { "type": "Feature",
==United States Mapframe==
+
      "properties": {
<mapframe latitude="52" longitude="-110" zoom="3" width="500" height="500" text="Governors of US states with their party affiliation">
+
        "marker-symbol": "-number",
{
+
        "title": "California-Central",
  "type": "ExternalData",
+
        "description": "{{CA_Region}}",
  "service": "geoshape",
+
        "marker-color": "302060" },
  "query": "
+
      "geometry": {
SELECT ?id ?head
+
        "type": "Point",
  (SAMPLE(?img) as ?img)
+
        "coordinates": [ -120.0030, 34.2731 ] }},
  (min(?partyId) as ?party)
+
    { "type": "Feature",
  (if(?party = '0', '#800000', if(?party = '1', '#000080', '#008000')) as ?fill)
+
      "properties": {
  (concat('[[wikipedia:', substr(str(?link),31,500),  '{{!}}', ?headLabel, ']]') as ?title)
+
        "marker-symbol": "-number",
  (concat(?stateLabel, '\\n', '[[File:', substr(str(?img), 52, 500), '{{!}}200px]]') as ?description)
+
        "title": "Colorado",
WHERE {
+
        "description": "{{CO_Region}}",
  ?id wdt:P31 wd:Q35657 .
+
        "marker-color": "302060" },
  ?id wdt:P6 ?head .
+
      "geometry": {
  ?head wdt:P102 ?party .
+
        "type": "Point",
  BIND(if(?party = wd:Q29468, '0', if(?party = wd:Q29552, '1', '2')) as ?partyId)
+
        "coordinates": [ -105.550, 39.026 ] }},
  SERVICE wikibase:label {
+
    { "type": "Feature",
    bd:serviceParam wikibase:language 'en' .
+
      "properties": {
    ?head rdfs:label ?headLabel .
+
        "marker-symbol": "-number",
    ?id rdfs:label ?stateLabel .
+
        "title": "Alabama",
  }
+
        "description": "{{AL_Region}}",
  OPTIONAL {
+
        "marker-color": "302060" },
    ?head wdt:P18 ?img .
+
      "geometry": {
  }
+
        "type": "Point",
  ?link schema:about ?head .
+
        "coordinates": [ -86.681, 32.561 ] }},
  ?link schema:isPartOf <https://en.wikipedia.org/> .
+
    { "type": "Feature",
} GROUP BY ?id ?head ?headLabel ?link ?stateLabel
+
      "properties": {
"}
+
        "marker-symbol": "-number",
</mapframe>
+
        "title": "Alaska",
 +
        "description": "{{AK_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -154.94, 63.05 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Arizona",
 +
        "description": "{{AZ_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -111.931, 34.216 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Arkansas",
 +
        "description": "{{AR_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -92.131, 34.770 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Wyoming",
 +
        "description": "{{WY_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -107.555, 43.033 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Wisconsin",
 +
        "description": "{{VA_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -89.569, 44.951 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "West Virginia",
 +
        "description": "{{WV_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -80.184, 38.938 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Washington DC",
 +
        "description": "{{DC_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -77.0146, 38.8936 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Washington",
 +
        "description": "{{WA_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -120.932, 47.301 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Virginia",
 +
        "description": "{{VA_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -79.383, 38.018 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Vermont",
 +
        "description": "{{VT_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -72.4535, 43.8830 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Utah",
 +
        "description": "{{UT_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -111.547, 39.545 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Texas-South",
 +
        "description": "{{TX_Region_South}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -96.831, 28.756 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Texas-North",
 +
        "description": "{{TX_Region_North}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -98.160, 31.796 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Tennessee",
 +
        "description": "{{TN_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -85.968,35.827 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "South Dakota",
 +
        "description": "{{SD_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -100.247,44.238 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "South Carolina",
 +
        "description": "{{SC_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -80.909,33.609 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Rhode Island",
 +
        "description": "{{RI_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -71.4970,41.5101 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Puerto Rico",
 +
        "description": "{{PR_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -66.596,18.200 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Pennsylvania West",
 +
        "description": "{{PA_Region_Wast}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -79.6413,40.9560 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Pennsylvania East",
 +
        "description": "{{PA_Region_East}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -76.292,40.982 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Oregon",
 +
        "description": "{{OR_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -120.633,44.157 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Oklahoma",
 +
        "description": "{{OK_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -98.717,35.327 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Ohio",
 +
        "description": "{{OH_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -82.670,40.394 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "North Dakota",
 +
        "description": "{{ND_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -100.302,47.490 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "North Carolina",
 +
        "description": "{{NC_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -79.811,35.134] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "New York Upstate",
 +
        "description": "{{NY_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -75.720,42.761] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "New York",
 +
        "description": "{{NY_Region_South}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -73.9800,40.6979] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "New Mexico",
 +
        "description": "{{NM_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -106.026,34.214] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "New Jersey",
 +
        "description": "{{NJ_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -74.6746,40.0632] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "New Hampshire",
 +
        "description": "{{NNH_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -71.518,44.018] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Nevada South",
 +
        "description": "{{NV_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -115.3029,36.7884 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Nevada North",
 +
        "description": "{{NV_Region_North}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -117.0332,40.4271] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Nebraska",
 +
        "description": "{{NE_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -99.681,41.533] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Montana",
 +
        "description": "{{MT_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -110.045,46.730] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Missouri",
 +
        "description": "{{MO_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -92.437,38.341 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Mississippi",
 +
        "description": "{{MS_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -89.876,32.555 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Minnesota",
 +
        "description": "{{MN_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -93.361,46.521 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Michigan",
 +
        "description": "{{MI_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -86.281,45.101 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Massachusetts",
 +
        "description": "{{MA_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -71.634,41.993 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Maryland",
 +
        "description": "{{MD_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -77.195,38.818 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Maine",
 +
        "description": "{{KE_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -68.989,45.194 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Louisiana",
 +
        "description": "{{LA_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -91.351,30.911 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Kentucky",
 +
        "description": "{{KY_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -85.776,37.836 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Kansas",
 +
        "description": "{{KS_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -98.320,38.514 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Iowa",
 +
        "description": "{{IA_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -93.400,41.964 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Indiana",
 +
        "description": "{{IN_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -86.442,39.795 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Illinois",
 +
        "description": "{{IL_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -89.266,39.795 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Idaho",
 +
        "description": "{{ID_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -114.153,45.610 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Hawaii",
 +
        "description": "{{HI_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -166.600,23.785 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Georgia",
 +
        "description": "{{GA_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [ -83.143,32.708 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Florida South",
 +
        "description": "{{FL_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [  -80.9679,25.9198 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Florida North",
 +
        "description": "{{FL_Region_North}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [  -82.0473,29.5723 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Delaware",
 +
        "description": "{{DE_Region}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [  -75.3374,39.1460 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Connecticut",
 +
        "description": "{{CT_East}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [  -72.7575,41.5030 ] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Canadaland-West",
 +
        "description": "{{CAN_West}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [  -123.1236 , 49.2576] }},
 +
    { "type": "Feature",
 +
      "properties": {
 +
        "marker-symbol": "-number",
 +
        "title": "Canadaland-East",
 +
        "description": "{{CAN_East}}",
 +
        "marker-color": "302060" },
 +
      "geometry": {
 +
        "type": "Point",
 +
        "coordinates": [  -79.3769 , 43.7081] }},
 +
] }</maplink>

Latest revision as of 23:19, 8 June 2018

Region Map

Production Test1

North America Region Map