Hi,
I've been trying to get this work for days now. According to the
docs, V3 of the Maps API allows you to get the featureData from a KML
Feature on a Kml "click" event after the KML is overlaid.
I'm getting "some" data in the returned JSON object, but not
everything thats contained in my KML (or at least what i need)
here is a sample of my kml
<Placemark>
<Style>
<IconStyle>
<Icon>
<href>http://google-maps-icons.googlecode.com/files/
restaurant.png</href>
</Icon>
</IconStyle>
</Style>
<name>The Whole Donut</name>
<description>FREE Donut w/purchase of Large Coffee<br><br>
920 Enfield Street<br>Enfield, CT 06082</description>
<Point>
<coordinates>-72.5547543012822,41.9839647819395,0</coordinates>
</Point>
<ExtendedData>
<Data name="offerid">
<displayName>Offer Id</displayName>
<value>359</value></Data>
</ExtendedData>
</Placemark>
the full KML can be viewed here :
http://dev.nwi.cc/nfpconsumerview/xml/georss.kml
Here is an output of the object I'm getting back from the KML event:
Object
status: OK
id: g290f277fb7197bf1
name: Italian Gourmet Deli and Bakery
description: 10% OFF a full catering job<br><br>15 Hartford
Avenue<br>Newington, CT 06111
snippet: 10% OFF a full catering job15 Hartford AvenueNewington, CT
06111
As you can see from the object above, none of the "ExtendeData"
elements are passing. Am I doing something wrong, is my KML
malformed? I just cant seem to figure it out...
Thanks in advance for your help
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.