This recipe is superseded by Ape.
Easy, lightweight and unobtrusive embedding of maps in wiki pages.
The recipe scans the wiki page for "shared" links to OpenStreetMap and inserts the map in an inline frame above each found link.
The recipe is easy to use: no new markup to learn, just normal wiki links.
And finally, if the recipe is disabled some day, the links will continue to work without any need to edit the pages and remove unparsed markup.
To embed a map in your wiki page, first go to http://www.openstreetmap.org/ to retrieve the "shared" link:
This link can now be pasted into your wiki page like any other regular link. There is no custom markup. For example:
Note that the map is inserted before the link which stays visible.
It is possible to select the frame dimensions: append to the link address
The default dimensions (height 350 pixels and width 100%) can be modified in osmap-pmwiki.js, see below.
If you have a shared link in your wiki page and you don't want a map to be embedded, just remove the
It is possible to modify the osmap-pmwiki.js file to change the width (100%) and height (350px) for the default map: edit the following lines near the beginning of the file:
OSMheight: '350', OSMwidth: "100%",
These dimensions can be overridden for each individual map from the wiki page.
Currently a single marker can be set, there is no way to set multiple markers.
Change log / Release notes
Recipe written and maintained by Petko.
See discussion at EmbedOpenStreetMap-Talk