OpenLayers KML Overlay

darylharr - December 14, 2009 - 19:44

This is my first post to the Drupal Forums and I am new to Drupal.
I have successfully installed Drupal 6.14, Openlayers, CCK, Geo, Image, Advanced Help, Lighbox2 and Views 2 and developed a working site.

I need to display a KML overlay of some linework on top of a Google basemap and can't seem to find a way to do so. I have looked through the documentation at http://docs.openlayers.org/library/layers.html and the forums and found some examples with code that might work, but I'm not sure WHERE this code needs to be inserted.

Any help would be appreciated.

Daryl

KML

dr_thomas64 - December 15, 2009 - 19:20

I'm wrestling with the same problem I think. I've managed display a route on a Google Map with KML generated by Google Earth - that was using the Trackfield module and GMAP. It didn't require any coding but I can't get more than one route to show on a map. I'm looking at the GMAP add-ons and OpenLayers in the hope that one of them will be the answer. If I get anywhere I'll post an update.

Dave.

KML overlay

dr_thomas64 - December 21, 2009 - 16:29

In the end I managd to do this by referencing multiple kml files in a GMAP macro and then using Gmapfield to insert a field that will accept the macro and render the map.

 
 

Drupal is a registered trademark of Dries Buytaert.