Active
Project:
GMap Module
Version:
7.x-2.x-dev
Component:
User interface
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Mar 2013 at 07:57 UTC
Updated:
17 Mar 2013 at 10:25 UTC
Hello.
Im trying to add a kml layer again. In v2 works fine, but now, i can´t add my kml layer. I can´t find information about this. Somebody can tell me how I make this programatically?
I use pages and I see my map with markers, but can´t access to "map" in order to manage it.
Im trying:
var georssLayer = new google.maps.KmlLayer('http://www.campo4.com/sites/default/files/maliciosa.kml');
georssLayer.setMap(map);But "map" is not defined....
Excuse my poor english and thanks in advance.
Comments
Comment #1
johnvComment #2
ddaniel.gomez commentedI think it is common that the user can upload a kml file when creating or editing a node and this file will be available on the map. The only way I've seen, is it programmatically once the page loads. If anyone can guide me how to do better, I really appreciate it!
I use panels, and the only way I've seen to handle it, is to create a view (in views) and loading through pages.
I have read a lot about the management of the maps, but I can not find any information about this.
Regards,
Comment #3
ddaniel.gomez commentedAnyone have any ideas to investigate? I'm doing a silly question? I can not find any information about it.
Any help would be greatly appreciated.
thanks in advance,
Comment #4
podarokfix title
back to latest dev
add as Feature Requests for 2.5 release roadmap #1932378: [META] gmap-7.x-3.0 release roadmap
Comment #5
ddaniel.gomez commentedEventually, I wrote in page.tpl.php in order to load via scripting this functionality but I must duplicate the map (I can´t found the map ID, bad solution).