The center for all Wikitravel images!

Tech:Enhancement of Mapstraction MediaWiki extension

From Wikitravel Shared
Jump to: navigation, search

Can you work on this while you fix a related bug? -- Tatata 07:13, 9 March 2009 (EDT)

OSM support[edit]

OpenStreetMap has grown and now they have geographical data of many places which can be used as maps. Thus, please add OpenStreetMap to Mapstraction special page.

Here is the provider specific code in Example Code of "Mapstraction - openstreetmap demo" page. [1]

<script src="
// initialise the map with your choice of API
var mapstraction = new Mapstraction('mapstraction','openstreetmap');

-- Tatata 07:13, 9 March 2009 (EDT)

maptype support[edit]

Template:Geo makes geographical data for page by using rdf, and I guess, Mapstraction MediaWiki extension reads the rdf to show map link in toolbox of left navigation bar. If we can specify maptype when we use the template like {{Geo|lat|long|maptype}}, well-made map for a certain place can be specified as a default map. So, please modify the MediaWiki extension to make a map link with maptype parameter by reading it from rdf. -- Tatata 07:13, 9 March 2009 (EDT)