Semantic Maps/OpenLayers

From Wiki of Jeroen De Dauw
Jump to: navigation, search

This page contains examples of the usage of the Semantic Maps MediaWiki extension with OpenLayers.

Contents

Sandbox

You can try out creating your own maps or modifying the underneath examples at the OpenLayers sandbox.

OpenLayers demo's

Simple example

{{
#ask:
[[Category:Locations]]
|?Has coordinates
|format=openlayer
|width=800
|height=500
}}


Loading map...


A little more complex

{{
#ask:
[[Category:Locations]]
|?Has coordinates
|format=openlayer
|width=800
|height=500
|zoom=8
|layers=osm,google-hybrid,yahoo,google,bing,openlayers,nasa
|controls=panzoombar,scaleline,overviewmap,keyboarddefaults,navigation,layerswitcher
}}


Loading map...

Custom centre example

{{
#ask:
[[Category:Locations]]
|?Has coordinates
|format=openlayer
|width=800
|height=500
|zoom=8
|center={{#geocode:Moscow, Russia}}
|layers=google-physical,yahoo,google,bing,openlayers,nasa
}}


Loading map...

Multiple properties

{{
#ask: [[Category:City]] [[located in::Germany]] 
| ?population 
| ?area#km² = Size in km² 
| ?coordinates
| format=openlayers
| width=800
| height=500
| zoom=4
| center={{#geocode:Moscow, Russia}}
| layers=google-physical,yahoo,google,bing,openlayers,nasa
}}


Loading map...

See also

Personal tools
Namespaces

Variants
Actions
Navigation
MediaWiki
Other software
Me
Toolbox