Semantic Maps examples/Mapping service (queries)

From semantic-mediawiki.org
Jump to: navigation, search
Semantic Maps examplesSemantic Maps examples/Mapping service (queries)
Table of Contents

To set the mapping service, provide the service name as the format option instead of 'maps', which gets you a map with the default service. Semantic Maps inherits the value for the default mapping service as set with the Maps extension.

This page shows examples for choosing a mapping service for rendering maps.

options / values
format / maps (default, same as googlemaps), googlemaps, openlayers or leaflet


A query displaying results ...

... using the Google Maps v3 mapping service

{{#ask:
 [[Category:Locations]]
 | ?Has coordinates
 | format = googlemaps 
}}
Loading map...

... using the OpenLayers mapping service

{{#ask:
 [[Category:Locations]]
 | ?Has coordinates
 | format = openlayers 
}}
Loading map...

... using the Leaflet mapping service

Note Note: This is available starting with Semantic Maps version 3.2

{{#ask:
 [[Category:Locations]]
 | ?Has coordinates
 | format = leaflet
}}
Loading map...