Wiki:Maps

From OpenStreetMap Wiki
Jump to: navigation, search

Given that OpenStreetMap is about geographic data, it seems logic to include maps in this wiki as well. This article outlines the options using an map sample of Vienna.

Slippy maps

Slippy maps are flexible displays of maps. You can pan around and zoom. This is very helpful in case a reader wants to see the map out of the framed area or needs to find the next bigger city to orient themselves.

The state of the art approach uses the MultiMaps extension. In order to be independent from any extension, it is recommended to use the following template:

{{slippymap
 |lat=   48.2274
 |lon=   16.3835
 |zoom=  15        (12 default)
 |width= 300       (400 default)
 |height=300       (400 default)
 |layer= mapnik    (mapnik default)
}}

Loading map...


Static maps

Static maps are displays of map data which can not be moved by the reader. This might be less distracting for them.

Images

The easiest option is to include images of maps. This can be done by taking a screenshot of the Homepage and uploading it into the wiki.

[[File:Nordwestbahnhof Wien Openstreetmap 170924.jpg|200px]]

Nordwestbahnhof Wien Openstreetmap 170924.jpg

Standard tiles

You can also directly include tiles from the tile servers in the wiki. So you will not need to upload anything and the tile might be updated, but on the other hand, you can not choose the exact area to display.

https://tile.openstreetmap.org/15/17875/11359.png

11359.png

Tile stitching

To provide more flexibility, there is Simple image MediaWiki Extension. The service currently uses tiles by Wikimedia Foundation, hence the different style. Clicking on the map will lead you right to the position on the webpage.

<map lat="48.2274" lon="16.3835" z=15 w="300" h="200" />

Linking to maps

Linking to the standard map is preferable over displaying maps when used often on a page as it avoids long loading times and breaking text blocks.

{{Map|latitude|longitude|zoom level|link text}}

Link to a map of Vianna

Similar templates are available from Category Templates for Maps.