How can i manipulate a kml/kmz file on google maps v3? the kml file has a lot of layers and i need to manipulate each one

155 views
Skip to first unread message

Nacho

unread,
Mar 27, 2012, 9:57:43 PM3/27/12
to kml-suppor...@googlegroups.com
How can i manipulate a kml/kmz file on google maps v3? the kml file has a lot of layers and i need to manipulate each one

I have this:

var Layer = new google.maps.KmlLayer('http://mysite.com/beta/maps_xml/it<?php echo $it; ?>/it.kmz');
Layer.setMap(map);

And now how can i manipulate it? (Poliline)change color, (Markers)change icons, show/hide each layer, get layers names

Rossko

unread,
Mar 29, 2012, 4:39:07 AM3/29/12
to KML Developer Support - Advanced Support for KML
> And now how can i manipulate it? (Poliline)change color, (Markers)change
> icons, show/hide each layer, get layers names

That's a question for a Maps API v3 forum, but you won't be able to
use KmlLayer if you want to override how things are rendered instead
of usingt he KML as it is. There are alternate client-side KML
parsers for the API, or you can write your own.
Reply all
Reply to author
Forward
0 new messages