I have a KML file that is contained in each <Placemark>node a <ExtendedData>node, and then several nodes <Data>with key / value pairs. I followed the following examples: http://code.google.com/apis/kml/documentation/extendeddata.html and code.google.com/apis/kml/documentation/kmlelementsinmaps.html suggests that maps support KML ExtendedData nodes (although partially), but I cannot find a way to access the ExtendedData object through javascript. I use:
google.maps.event.addListener(agency_layer, 'click', function(kmlEvent) {
console.debug( kmlEvent );
}
(where agency_layer is a KML object). kmlEvent contains all the data in the KML function, but not extendedData, and I'm scratching my head. I want to make my KML semantically reasonable, and not load more data into the description and parse it later using javascript.
Does anyone have similar experience or know how to access ExtendedData nodes through the Google Maps v3 API?
source
share