Semantic Google Maps with kml?

Jump to: navigation, search

If you use Google Maps v3 as service (which is the default), then you can add kml and kmz files using the kml and gkml parameters. These are accepted by display_map, display_points and semantic queries with format map or googlemaps.

Jeroen De Dauw22:48, 29 November 2011
Edited by another user.
Last edit: 23:47, 29 November 2011
{{
#ask: ABQIAAAAaufLn-pud1u2U6PL9te-BBTSCke0pf_Q3FbnK4iLZ8CjvGATgBSyLJTPlQhtdtcsHoxC4sdYWbv3IQ
[[Category:DemoLandgrab]]
| ?Has GeoKoordinaten
| ?GeoKoordinaten
| ?kml=http://wiki.space2live.org/mw/images/4/44/Ashaninka.kml
| format=map
}}

This is what I do so far - it displays the map with the places from the DemoLandgrab category if they have coordinates. I thought I could add the kml coordinates to this map - visible only when zooming in. But I would be at least as happy with a map showing only the kml outline, I just couldn't find out the syntax how to accomplish that.

178.10.110.79 Markus Spring <m.spring@gmx.de>22:58, 29 November 2011

The KML parser of Semantic Maps does not support the LinearRing element, so it, and all the point it contains, are getting dropped. You can try the gkml param instead, which sends the KML to Google services and get the tiles from there.

Jeroen De Dauw23:08, 29 November 2011

Thanks, Jeroen. I couldn't get it to work immediately, but will try again tomorroy. Additionally I found your blog plus some documentation on referata.com, which will probably help.

Thanks again, also for this excellent extension to MediaWiki

Markus

188.104.118.242 Markus Spring <m.spring@gmx.de>23:38, 29 November 2011
 
 
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox