Listing Map Extension (In-article embedded maps)
The Listing Map extension will allow maps of geocoded listings to be embedded on any page. The extension will parse the calling page and convert geocoded listing tags into the appropriate Google map code. Only those listings that are both in the listing tag format and have lat/long data will be displayed. The default zoom level will be set to display all points painted on the map. Each listing category will have a custom pin. Clicking on a category checkbox will toggle the display of that set of listings on the map. Multiple listing categories can be displayed at a given time. Default display state can be configured in the map code.
Height = 400
Width = 350
DefaultChecked = Eat (Valid values: comma separated list Do, Buy, Eat, Drink, Sleep)
Mock-up of rendered map
- The Listing Map Extension is cool. But why is there no See category checkbox? And is it going to be deployed on English version Wikitravel only? -- Tatata 23:36, 18 September 2007 (EDT)
- It's a neat idea, but I don't think it's acceptable under the CC license, because Google maps are not public domain. This means it would technically be a crime to print out and distribute a WT guide with embedded Google maps. Jpatokal 23:48, 18 September 2007 (EDT)
- Oh, I forgot license issues... ;-) BTW, I think Mapstraction has the same problem though that is not a travel guide page. I was thinking of adding Template:Geo to ja:. How should we think about that? -- Tatata 00:14, 19 September 2007 (EDT)
- What if instead of displaying the map on the same page as the WT guide, a link is provided that will generate the map in a separate window or pop-up? Would that violate the CC license? This would be a really great feature if it could be added. This would also reduce the bandwidth to the servers (noted below about OSM) to generate a map only when requested. [Also, above it says "Only those listings that are both in the listing tag format and have lat/long data will be displayed." Requiring lat/long will be very restrictive. What if there was a way to automatically add lat/long data to a listing in tag format if the address is given?] 18.104.22.168 17:56, 23 October 2008 (EDT)
So, I'm actually thinking about implementing an offline version of this for Wikitravel Press: the idea is that you could take a free CC-licensed map, give it exact coordinates, and then automatically overlay listings that have detailed coordinates. It would be even spiffier if you could add listing locations the same way... Jpatokal 14:08, 8 October 2007 (EDT)
- And what about allowing a feature like this for online version only? AFAIK, Google doesn't limit usage of its mashups on third-party sites. At the same time, offline version would deal with some other CC-licensed map. --DenisYurkin 16:50, 14 October 2007 (EDT)
- It seems as long as we state clearly that the Google maps are not being offered under the CC license, we can continue to have all of the Wikitravel listings data as open content while it is being presented through Google's proprietary map display. Does that seem right? Redondo 21:08, 7 November 2007 (EST)
It would be really great if IB could put some effort into better integration with OpenStreetMap, which is CC-licensed and thus fully compatible with Wikitravel. Obviously their coverage isn't quite the same level as Google Maps, but they've got some really great maps (esp. for much of the United Kingdom) and, unlike Google Maps, they let anybody who registers work online on the actual maps themselves -- a massive plus for Wikitravel! Jpatokal 10:50, 23 October 2007 (EDT)
In particular, take a look at Osmarender and its ability to add user-defined symbols on top of maps. Jpatokal 10:51, 23 October 2007 (EDT)
- So, I've been working on this for a while now and there's now a public beta of an online map generator tool. See en:Wikitravel_talk:How_to_draw_a_map#Areca_map_generator for further discussion. Jpatokal 09:59, 6 February 2008 (EST)
We have some MediaWiki Extensions available. But wikitravel might be too high-traffic to be fetching tile images off OSM's servers. Could pipe tile requests via a squid proxy. This would also improve performance. I'd love to see if that worked.
A new renderer called Kosmos offers another way for individual wikitravel contributors to create custom rendered maps out of OpenSteetMap.
-- Harry Wood 12:25, 7 February 2008 (EST)