Extension:SlippyMap
From MediaWiki.org
|
Release status: beta |
|||
|---|---|---|---|
| Implementation | Tag | ||
| Description | Easily embed OpenStreetMap maps, with marker support. | ||
| Author(s) | Harry Wood, Jens Frank, Grant Slater, Raymond Spekking, Ævar Arnfjörð Bjarmason, Christian Becker, Aude and others | ||
| License | GPL | ||
| Download | Download snapshot |
||
|
|||
|
check usage (experimental) |
|||
The SlippyMap extension allows embedding of slippy maps by bringing in the OpenLayers JavaScript library. It's pluggable so that (with the right configuration) multiple free map sources can be included, but it's being aimed especially at embedding OpenStreetMap maps.
It's a fork of the Slippy Map MediaWiki Extension hosted in OpenStreetMap SVN and was being hacked to allow it to be deployed on Wikimedia projects. The extension was abandoned and is expected to be replaced by Extension:Maps.
Contents |
[edit] Installation
- Checkout a copy of the SlippyMap extension code to
/extensions/SlippyMap
- Add to the LocalSettings.php file
require_once( "$IP/extensions/SlippyMap/SlippyMap.php" );
Note: this extension is under active development, so is not stable.
[edit] Synopsis
The extension allows users to embed a slippy map using the following syntax in their wiki code:
<slippymap lat="52.1295" lon="-0.4644" zoom="13" w="400" h="150"/>
Deprecated older syntax like this (support should now be removed):
<slippymap>lat=51.485|lon=-0.15|z=11|w=300|h=200|format=jpeg</slippymap>
Users can discover suitable latitude logitude and zoom values by doing the following:
- Edit the page
- Use the slippymap syntax with any old values e.g. paste in the above example
- Doing a preview
- zoom/pan the right position,
- Use the 'Get wikicode' button
- Copy and paste the resulting wiki code into the editing box
- Save the page
[edit] Who's using it?
Please add your wiki here! Add it to the top, and feel free to add a link to your favourite article or two.
- Map Kibera
- The first complete, free and open map of Kibera, Nairobi
- Wiki-Brest
- We are beginnig to use this extension, waiting for improvements, and involved in OpenStreetMap community around Pays de Brest (exemple Quartiers de Brest)
- openstreetmap.org
- This is where this extension originated see 'Slippy Map MediaWiki Extension' page. Currently forked a version of the code in the OSM repo, but trying to re-sync (
and swap to using the new syntax- using new syntax.) - Translatewiki:
- Just to let others know where you live, or feed them misinformation... e.g.: Translatewiki:User:Raymond/Kölner Dom. Newish version (latest syntax)
- Fürthwiki
- We use OSM & SlippyMap whenever we describe streets, important buildings or sights: [1] (old version old syntax)
- e4pedia
- We use it for locating our bases and events (example)
- Wikivoyage
- We use the maps in the articles of the locations like Münster and at the MapSources special page like this for Innsbruck. The authors can use the OpenStreetMap template to put it to the articles in an easy manner.
- Hitchwiki
- Free content collaborative website for hitchhikers from hitchhikers with lots of information on hitchhiking and other alternative ways of transport as well as hitchhiking spots all over the world.
- Altmarkwiki
- regional wiki for the Altmark, a region in Saxony-Anhalt, Germany.
- Hamm Wiki
- Wiki for the City of Hamm, Germany. One SlippyMap for each of the 1765 streets (55% completed at the moment, Aug 2009) and for POIs.
[edit] Development
- The buglist for this extension in MediaZilla. Please add bugs and feature requests there
- See /Static map generation for notes on generating static maps in Wikimedia context
- See /Cassini/Setup_notes for notes on setting up the whole stack on cassini.toolserver.org