Is there a way not to use the default map location and instead display a zoom level of the uploaded kml file? If you had many different nodes with KML files attached of locations from all over a country it would be nice if the the user did not have to zoom into that part of the country to view the KML location.
Comments
Comment #1
7wonders commentedIve changed the category to feature request. This is a great module for displaying uploaded kml files easily but I agree that being able to set the default zoom to the uploaded kml area plus pick a default zoom level for that area would be great, and from what I can tell this is not possible at the moment.
Comment #2
7wonders commentedWell, I got this working using the old trick of creating a second "invisible" openlayer data layer with views. I added a lat/lon geofield to the same node as the kml file and insert programmatically the starting point of my track. Then I add this to views openlayer and then use the zoom to feature after enabling this layer as invisible. Works great.
I guess someone smarter than me could build an extension than does similar using http://drupal.org/project/geophp and looking up the centroid/bounding for the kml file and adding a layer to openlayers.