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

johnv’s picture

Title: How to add kml gmap v3 » How to add layer: kml layer broker in GMap v3
ddaniel.gomez’s picture

I 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,

ddaniel.gomez’s picture

Anyone 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,

podarok’s picture

Title: How to add layer: kml layer broker in GMap v3 » How to add layer: kml layer broken in GMap v3
Version: 7.x-2.4 » 7.x-2.x-dev

fix title
back to latest dev
add as Feature Requests for 2.5 release roadmap #1932378: [META] gmap-7.x-3.0 release roadmap

ddaniel.gomez’s picture

Eventually, 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).

var ctaLayer = new google.maps.KmlLayer(theKml);
ctaLayer.setMap(MY_MAP);