Mapify a MediaWiki with New Extension

Adam DuVander, July 28th, 2009

MediaWikiThe project that runs Wikipedia has added improved mapping extensions that let you embed Yahoo or Google Maps within your Wiki pages. Special markup is translated to API calls, which keeps out JavaScript that would be required if creating maps directly.

Once the Maps extension is installed, anyone editing a MediaWiki page can include the familiar Wiki syntax with curly brackets. For example, use this code to display a point:

{{#display_point:coordinates=55.7557860, 37.6176330}}

Or use the city name (or address) and have the geocoding performed automatically:

{{#display_address:address=Moscow, Russia}}

MediaWiki Maps on OpenLayers

Since this is an extension, it is an optional addition to MediaWiki. Therefore, don’t expect to be able to use maps on Wikipedia or other sites unless you know the administrator has installed the extension.

So far you can choose from three mapping providers: Google, Yahoo and OpenLayers (which uses underlying maps from many providers). This might remind you of the JavaScript wrapper library Mapstraction (our Mapstraction API profile), which provides a single syntax to access a dozen mapping APIs.

Hat tip: slashgeo

Tags: Mapping, wiki
Both comments and pings are currently closed.

One Response to “Mapify a MediaWiki with New Extension”

July 28th, 2009
at 2:33 pm
Comment by: Mapify Your Wikis : GIS Lounge - Geographic Information Systems

[...] Seen via Programmable Web [...]

Follow the PW team on Twitter

ProgrammableWeb
APIs, mashups and code. Because the world's your programmable oyster.

John Musser
Founder, ProgrammableWeb

Adam DuVander
Executive Editor, ProgrammableWeb. Author, Map Scripting 101. Lover, APIs.