I want to add a line to a Google Map by loading a kml file using GGeoXml. Then, under certain conditions, I want to dynamically change the color of the line to be different from the LineStyle defined in the kml file.
Any suggestions as to how I can obtain a reference to the line in the kml file, and then change its color? That is, can I obtain a reference to a specific Placemark name that is within the overlay, if I know what the line's name is? I haven't created a test site yet, but here is how I'm planning to load the file and the format of the kml file: javascript: var geoXml = new GGeoXml(kmlFilename); map.addOverlay(geoXml); kml: <kml xmlns="http://earth.google.com/kml/2.2"> <Document> <name>Area name</name> <Style id="PathStyle"> <LineStyle> <color>ffff00ff</color> <width>4</width> </LineStyle> </Style> <Placemark> <name>Path name</name> <styleUrl>#PathStyle</styleUrl> <LineString> <tessellate>1</tessellate> <altitudeMode>clampToGround</altitudeMode> <coordinates> [...] Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
