Wikipedia:WikiProjekt Georeferenzierung/Anwendungen/OpenStreetMap/en

aus Wikipedia, der freien Enzyklopädie
Wechseln zu: Navigation, Suche

Diese Seite auf Deutsch: Wikipedia:WikiProjekt Georeferenzierung/Anwendungen/OpenStreetMap

Many Wikipedia articles hold geographic coordinates which allow for displaying locations on a map. OpenStreetMap (OSM) is the basic map used. The map is activated by clicking on the link "Karte" (=Map) on the upper right-hand side next to the coordinates in German Wikipedia articles. The map also contains images and links to other Wikipedia articles.

In order to allow the map to work, JavaScript must be activated in the web browser. An example can be found e.g. in the article Heilbronn (German Wikipedia).

OpenStreetMap and Wikipedia[Bearbeiten]

The free world map OpenStreetMap (OSM) is a collaborative project in which people from all over the world offer their geographic knowledge free to use.

Wikipedia and OpenStreetMap join forces and link their data:

  1. Wikipedia articles are illustrated with maps
  2. Wikipedia articles are linked on the map

Placing Wikipedia articles into a spatial context to each other and to other objects is the main goal of the Wikipedia OSM map. To this end Wikipedia articles are georeferenced with coordinates. The respective node is collected as part of the WikiProject geographical coordinates. In subproject Wikipedia-World the data is being processed for the use on the map.

Anybody can collaborate in OpenStreetMap - just like with Wikipedia. The OpenStreetMap Beginner's Guide helps you with your first steps in OSM.

Open map view[Bearbeiten]

Coordinate in the upper right-hand side of the article with "(Map)"
Article with map

In the upper right-hand side of the articles you can often find a coordinate with a "Map" button.

  • A click on (Map) opens the integrated OSM map, a second click closes it.
  • A click on the coordinate opens the "Geohack" page where you can choose from various maps to view the location.


Wikipedia links on the map[Bearbeiten]

Popup with link and image

Clicking on an icon opens a small window within the map. The window shows the link to the respective wikipedia article and an image from Wikimedia Commons if available. Clicking on the link opens the article in a new browser window.


Usability[Bearbeiten]

Bedienung
No. controls use
1 Move

Dragging (keeping the left mouse button pressed) or clicking on one of the four arrows of the cross control moves the map.

2 Options
  • Clicking on „Options“ opens a list of the available languages of the article
    • selecting the language
    • toggling the showing of images
3 Zoom
  • Moving the slider or using the mouse wheel zooms in or out the map
  • alternatively you can draw a zoom window keeping the left mouse button and the shift-key pressed
  • alternatively you can double-click on the map to zoom stepwise (zoom +1)
4 Layer

Clicking on the blue "plus" sign opens the layer menu,
where you can select different map styles and content layers

5 Permalink
  • right-clicking on „Permalink“ generates a link of the current map view which can be copied
  • left-clicking on „Permalink“ opens an identical map view in a new window


  • Within the list you can choose the language of the Wikipedia articles.
  • Most articles will be shown when you choose the English (more than 3 million) or the German Wikipedia (more than 1 million).
  • More articles will be available if you choose the language spoken in the displayed area.
  • Wikipedia is available in more than 270 different languages. You can choose 40 of them to display on top of the map (the others can be accessed by clicking on the internet address)
Thumbnails/Images
  • showing images on top of the map can be switched on/off by ticking the small box on/off
  • the source of the images is Wikimedia Commons

Base Layer[Bearbeiten]

Base Layer (above)

You can choose out of three background maps ("Base Layer)":

Basis-Layer Stil
OSM The map you know from the OSM portal. Processed by Wikimedia Toolserver.
OSM.org Mapnik Another layer from the OSM portal. Processed by OpenStreetMap.org servers.
HikeBike Hiking and biking map.
Public Transport Public Transport (öpnvkarte.de)
Germany A map visualisation used in Germany for car maps.


Overlays[Bearbeiten]

Overlays (below)

You can choose out of three overlay layers:

Overlay Content
Wikipedia World Selection of Wikipedia articles from the map by clicking on the icon. This opens a small window with a link to the respective article.
WIWOSM Show geometric objects from OpenStreetMap for this article
Markers Marker on the centre of the map.
HillShade Hill-shading (terrain) will be visualised.

Contribute[Bearbeiten]

Please contribute to the project by adding coordinates to wikipedia articles:

Wikipedia articles shown on a world map[Bearbeiten]

Wikipedia-Worldmap
OpenSeaMap

Two maps displays all georeferenced Wikipedia articles worldwide:

Wikipedia-OpenStreetMap
OpenSeaMap with Wikipedia

The more you zoom in, the more (local) articles are displayed. The GUI of the world map works as explained in the section "Usability".

Source code[Bearbeiten]

Bug reports[Bearbeiten]

Installation[Bearbeiten]

To install add the following lines of code in your common.js skin javascript or as admin in MediaWiki:Common.js:

/**
 * Install OSM.
 * @source https://de.wikipedia.org/wiki/Hilfe:OpenStreetMap/en
 * @updated 11 July 2012‎
 */
window.osm_proj_map = 'map'; // "map" in project language
window.osm_proj_lang = 'pl';  // project language
mw.loader.load('//meta.wikimedia.org/w/index.php?title=MediaWiki:OSM.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400');

The installation is only necessary if the map application is not already installed as a gadget or globally for all installed.

News[Bearbeiten]

  • 2012-07-10 - Activation of WIWOSM in all languages (IE still not working)
  • 2012-03-21 - WIWOSM was activated in German Wikipedia as beta-Version
  • 2010-11-01 - We are now running at the Translatewiki. Translation contributions into additional languages are wanted. The languages of the language selector is now being translated with CLDR, other GUI elements of the gadget are translated via OpenLayers.
  • 2010-10-31 - The map is now available for different languages at zoom levels 0-6. The selection of the language is possible for all Wikipedias with more than 1000 articles. The translation of the interface is under preparation.
  • 2010-10-21 - News on heise.de: http://www.heise.de/newsticker/meldung/Wikipedia-integriert-OpenStreetMap-1123096.html
  • 2010-10-20 – The OSM map is now activated on de.wikipedia.org for all users.
  • 2010-09-10 – The OSM gadget distributes now tiles from the Toolserver.