Difference between revisions of "Map3"

(Created page with "=Map Testbed= =Map Test 2= <maplink text="North America Region Map" width=800 height=600 zoom=4 latitude=46.468 longitude=-98.723>{ "type": "FeatureCollection", "features": [...")
 
Line 1: Line 1:
 
=Map Testbed=
 
=Map Testbed=
 
=Map Test 2=
 
=Map Test 2=
<maplink text="North America Region Map" width=800 height=600 zoom=4 latitude=46.468 longitude=-98.723>{
+
<mapframe latitude="52" longitude="-110" zoom="3" width="500" height="500" text="Governors of US states with their party affiliation">
"type": "FeatureCollection", "features":  [
+
{
    { "type": "Feature",
+
  "type": "ExternalData",
      "properties": {
+
  "service": "geoshape",
        "marker-symbol": "-number",
+
  "query": "
        "title": "California-North",
+
SELECT ?id ?head
        "description": "{{CA_Region}}",
+
  (SAMPLE(?img) as ?img)
        "marker-color": "302060" },
+
  (min(?partyId) as ?party)
      "geometry": {
+
  (if(?party = '0', '#800000', if(?party = '1', '#000080', '#008000')) as ?fill)
        "type": "Point",
+
  (concat('[[wikipedia:', substr(str(?link),31,500), '{{!}}', ?headLabel, ']]') as ?title)
        "coordinates": [ -119.357, 37.384 ] }},
+
  (concat(?stateLabel, '\\n', '[[File:', substr(str(?img), 52, 500), '{{!}}200px]]') as ?description)
    { "type": "Feature",
+
WHERE {
      "properties": {
+
  ?id wdt:P31 wd:Q35657 .
        "marker-symbol": "-number",
+
  ?id wdt:P6 ?head .
        "title": "California-South",
+
  ?head wdt:P102 ?party .
        "description": "{{CA_Region}}",
+
  BIND(if(?party = wd:Q29468, '0', if(?party = wd:Q29552, '1', '2')) as ?partyId)
        "marker-color": "302060" },
+
  SERVICE wikibase:label {
      "geometry": {
+
     bd:serviceParam wikibase:language 'en' .
        "type": "Point",
+
     ?head rdfs:label ?headLabel .
        "coordinates": [ -117.0597, 32.8036 ] }},
+
     ?id rdfs:label ?stateLabel .
    { "type": "Feature",
+
  }
      "properties": {
+
  OPTIONAL {
        "marker-symbol": "-number",
+
     ?head wdt:P18 ?img .
        "title": "California-Central",
+
  }
        "description": "{{CA_Region}}",
+
  ?link schema:about ?head .
        "marker-color": "302060" },
+
  ?link schema:isPartOf <https://en.wikipedia.org/> .
      "geometry": {
+
} GROUP BY ?id ?head ?headLabel ?link ?stateLabel
        "type": "Point",
+
"}
        "coordinates": [ -120.0030, 34.2731 ] }},
+
</mapframe>
    { "type": "Feature",
 
      "properties": {
 
        "marker-symbol": "-number",
 
        "title": "Colorado",
 
        "description": "{{CO_Region}}",
 
        "marker-color": "302060" },
 
      "geometry": {
 
        "type": "Point",
 
        "coordinates": [ -105.550, 39.026 ] }},
 
    { "type": "Feature",
 
      "properties": {
 
        "marker-symbol": "-number",
 
        "title": "Alabama",
 
        "description": "{{AL_Region}}",
 
        "marker-color": "302060" },
 
      "geometry": {
 
        "type": "Point",
 
        "coordinates": [ -86.681, 32.561 ] }},
 
    { "type": "Feature",
 
      "properties": {
 
        "marker-symbol": "-number",
 
        "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>
 

Revision as of 19:51, 6 September 2018

Map Testbed

Map Test 2

<mapframe>: Control character error, possibly incorrectly encoded