Maps examples/OpenLayers with layer maps

From semantic-mediawiki.org
Jump to: navigation, search
Maps examplesMaps examples/OpenLayers with layer maps
Table of Contents

This page shows examples for basic maps rendered with different map layers provided by OpenLayers.

option / value
layers / "osm-mapnik, osm-cyclemap" (default) or either "osm-mapnik" or "osm-cyclemap" (also reversed)

If the layers option is not provided "osm-mapnik, osm-cyclemap" will automatically be assumed. Note that the layer mentioned first will be shown first. The user will see a layerswitcher ("+") at the top right side of the map allowing to disable or switch the visible layers.


default layers - osm-mapnik, osm-cyclemap

{{#display_map: Berlin, Germany
 |service=openlayers
}}
Loading map...
<display_map service="openlayers">
Berlin, Germany
</display_map>
Loading map...
{{#display_map: Berlin, Germany
 |service=openlayers
 |layers=osm-mapnik, osm-cyclemap
}}
Loading map...
<display_map layers="osm-mapnik, osm-cyclemap" service="openlayers">
Berlin, Germany
</display_map>
Loading map...


default layers - osm-cyclemap, osm-mapnik (reversed view)

{{#display_map: Berlin, Germany
 |service=openlayers
 |layers=osm-cyclemap, osm-mapnik
}}
Loading map...
<display_map layers="osm-cyclemap, osm-mapnik" service="openlayers">
Berlin, Germany
</display_map>
Loading map...


layer - osm-cyclemap or osm-mapnik (exclusive view)

{{#display_map: Berlin, Germany
 |service=openlayers
 |layers=osm-cyclemap
}}
Loading map...
<display_map layers="osm-cyclemap" service="openlayers">
Berlin, Germany
</display_map>
Loading map...