Semantic Maps examples/Customizing query maps
From semantic-mediawiki.org
< Category:Semantic Maps examples
Semantic Maps examplesSemantic Maps examples/Customizing query maps
Jump to:navigation, search
These examples show various ways you can customize your maps by specifying additional properties. There are several general properties that can be used for all query maps, as well as properties unique to the used mapping service.
Map size[edit]
A query with the maps width and height specified:
{{ #ask: [[Category:Locations]] | ?Has coordinates | format=map | width=800 | height=250 | zoom=2 }}
Loading map...
{"format":"leaflet","minzoom":false,"maxzoom":false,"limit":50,"offset":0,"link":"all","sort":[""],"order":[],"headers":"show","mainlabel":"","intro":"","outro":"","searchlabel":"... further results","default":"","import-annotation":false,"width":"800px","height":"250px","centre":false,"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[],"rectangles":[],"copycoords":false,"static":false,"zoom":2,"defzoom":14,"layers":["OpenStreetMap"],"image layers":[],"overlays":[],"resizable":false,"fullscreen":false,"scrollwheelzoom":true,"cluster":false,"clustermaxzoom":20,"clusterzoomonclick":true,"clustermaxradius":80,"clusterspiderfy":true,"geojson":"","clicktarget":"","showtitle":true,"hidenamespace":false,"template":"","userparam":"","activeicon":"","pagelabel":false,"ajaxcoordproperty":"","ajaxquery":"","locations":[{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Asia\" title=\"Asia\"\u003EAsia\u003C/a\u003E\u003C/b\u003E","title":"Asia","link":"","lat":34.04786,"lon":100.61966,"icon":""},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Belgium\" title=\"Belgium\"\u003EBelgium\u003C/a\u003E\u003C/b\u003E","title":"Belgium","link":"","lat":50.503887,"lon":4.469936,"icon":""},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Brussels\" title=\"Brussels\"\u003EBrussels\u003C/a\u003E\u003C/b\u003E","title":"Brussels","link":"","lat":50.8503396,"lon":4.3517103,"icon":""},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Coasting\" title=\"Coasting\"\u003ECoasting\u003C/a\u003E\u003C/b\u003E","title":"Coasting","link":"","lat":41.46141,"lon":12.66777,"icon":""},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Externsteine\" title=\"Externsteine\"\u003EExternsteine\u003C/a\u003E\u003C/b\u003E","title":"Externsteine","link":"","lat":51.867863,"lon":8.9180267,"icon":""},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Gent\" title=\"Gent\"\u003EGent\u003C/a\u003E\u003C/b\u003E","title":"Gent","link":"","lat":51.053468,"lon":3.73038,"icon":""},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Hamburg\" title=\"Hamburg\"\u003EHamburg\u003C/a\u003E\u003C/b\u003E","title":"Hamburg","link":"","lat":53.5510846,"lon":9.9936818,"icon":""},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Khabarovsk\" title=\"Khabarovsk\"\u003EKhabarovsk\u003C/a\u003E\u003C/b\u003E","title":"Khabarovsk","link":"","lat":48.485637,"lon":135.0795875,"icon":""},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Netherlands\" title=\"Netherlands\"\u003ENetherlands\u003C/a\u003E\u003C/b\u003E","title":"Netherlands","link":"","lat":52.160454557747,"lon":5.625,"icon":""},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Norway\" title=\"Norway\"\u003ENorway\u003C/a\u003E\u003C/b\u003E","title":"Norway","link":"","lat":60.472024,"lon":8.468946,"icon":""},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Portugal\" title=\"Portugal\"\u003EPortugal\u003C/a\u003E\u003C/b\u003E","title":"Portugal","link":"","lat":39.567870063777,"lon":-8.81103515625,"icon":""}],"imageLayers":[]}
Marker icons[edit]
A query showing locations indicated with green markers:
{{ #ask: [[Category:Locations]] | ?Has coordinates | format=map | icon=Green_marker.png }}
Loading map...
{"format":"leaflet","minzoom":false,"maxzoom":false,"limit":50,"offset":0,"link":"all","sort":[""],"order":[],"headers":"show","mainlabel":"","intro":"","outro":"","searchlabel":"... further results","default":"","import-annotation":false,"width":"auto","height":"350px","centre":false,"title":"","label":"","icon":"Green_marker.png","lines":[],"polygons":[],"circles":[],"rectangles":[],"copycoords":false,"static":false,"zoom":false,"defzoom":14,"layers":["OpenStreetMap"],"image layers":[],"overlays":[],"resizable":false,"fullscreen":false,"scrollwheelzoom":true,"cluster":false,"clustermaxzoom":20,"clusterzoomonclick":true,"clustermaxradius":80,"clusterspiderfy":true,"geojson":"","clicktarget":"","showtitle":true,"hidenamespace":false,"template":"","userparam":"","activeicon":"","pagelabel":false,"ajaxcoordproperty":"","ajaxquery":"","locations":[{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Asia\" title=\"Asia\"\u003EAsia\u003C/a\u003E\u003C/b\u003E","title":"Asia","link":"","lat":34.04786,"lon":100.61966,"icon":"/w/images/c/ce/Green_marker.png"},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Belgium\" title=\"Belgium\"\u003EBelgium\u003C/a\u003E\u003C/b\u003E","title":"Belgium","link":"","lat":50.503887,"lon":4.469936,"icon":"/w/images/c/ce/Green_marker.png"},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Brussels\" title=\"Brussels\"\u003EBrussels\u003C/a\u003E\u003C/b\u003E","title":"Brussels","link":"","lat":50.8503396,"lon":4.3517103,"icon":"/w/images/c/ce/Green_marker.png"},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Coasting\" title=\"Coasting\"\u003ECoasting\u003C/a\u003E\u003C/b\u003E","title":"Coasting","link":"","lat":41.46141,"lon":12.66777,"icon":"/w/images/c/ce/Green_marker.png"},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Externsteine\" title=\"Externsteine\"\u003EExternsteine\u003C/a\u003E\u003C/b\u003E","title":"Externsteine","link":"","lat":51.867863,"lon":8.9180267,"icon":"/w/images/c/ce/Green_marker.png"},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Gent\" title=\"Gent\"\u003EGent\u003C/a\u003E\u003C/b\u003E","title":"Gent","link":"","lat":51.053468,"lon":3.73038,"icon":"/w/images/c/ce/Green_marker.png"},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Hamburg\" title=\"Hamburg\"\u003EHamburg\u003C/a\u003E\u003C/b\u003E","title":"Hamburg","link":"","lat":53.5510846,"lon":9.9936818,"icon":"/w/images/c/ce/Green_marker.png"},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Khabarovsk\" title=\"Khabarovsk\"\u003EKhabarovsk\u003C/a\u003E\u003C/b\u003E","title":"Khabarovsk","link":"","lat":48.485637,"lon":135.0795875,"icon":"/w/images/c/ce/Green_marker.png"},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Netherlands\" title=\"Netherlands\"\u003ENetherlands\u003C/a\u003E\u003C/b\u003E","title":"Netherlands","link":"","lat":52.160454557747,"lon":5.625,"icon":"/w/images/c/ce/Green_marker.png"},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Norway\" title=\"Norway\"\u003ENorway\u003C/a\u003E\u003C/b\u003E","title":"Norway","link":"","lat":60.472024,"lon":8.468946,"icon":"/w/images/c/ce/Green_marker.png"},{"text":"\u003Cb\u003E\u003Ca href=\"/wiki/Portugal\" title=\"Portugal\"\u003EPortugal\u003C/a\u003E\u003C/b\u003E","title":"Portugal","link":"","lat":39.567870063777,"lon":-8.81103515625,"icon":"/w/images/c/ce/Green_marker.png"}],"imageLayers":[]}