Hi,
I am adding an overlay like this to my Google map:
countiesOverlay = new GGeoXml("http://ceden.org/Data/counties.kml");
map.addOverlay(countiesOverlay);
The kml file starts like this:
<?xml version="1.0" encoding="utf-8" ?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document><Folder><name>co06_d00</name>
<Schema name="co06_d00" id="co06_d00">
<SimpleField name="Name" type="string"></SimpleField>
<SimpleField name="Description" type="string"></SimpleField>
<SimpleField name="AREA" type="float"></SimpleField>
<SimpleField name="PERIMETER" type="float"></SimpleField>
<SimpleField name="CO06_D00_" type="float"></SimpleField>
<SimpleField name="CO06_D00_I" type="float"></SimpleField>
<SimpleField name="STATE" type="string"></SimpleField>
<SimpleField name="COUNTY" type="string"></SimpleField>
<SimpleField name="NAME" type="string"></SimpleField>
<SimpleField name="LSAD" type="string"></SimpleField>
<SimpleField name="LSAD_TRANS" type="string"></SimpleField>
</Schema>
<Placemark>
<name>Siskiyou</name>
<Style><LineStyle><color>7dbd6b40</color><width>1</width></
LineStyle> <PolyStyle><fill>0</fill></PolyStyle></Style>
<ExtendedData><SchemaData schemaUrl="#co06_d00">
<SimpleData name="Name">Siskiyou</SimpleData>
<SimpleData name="AREA">1.77533</SimpleData>
<SimpleData name="PERIMETER">7.15470</SimpleData>
<SimpleData name="CO06_D00_">2</SimpleData>
<SimpleData name="CO06_D00_I">1</SimpleData>
<SimpleData name="STATE">06</SimpleData>
<SimpleData name="COUNTY">093</SimpleData>
<SimpleData name="LSAD">06</SimpleData>
<SimpleData name="LSAD_TRANS">County</SimpleData>
</SchemaData></ExtendedData>
<Polygon><outerBoundaryIs><LinearRing><coordinates>-123.230762,42.003844999999998
[.............]
I was wondering if it is possible to know the name of the county that
the user clicks on by adding a listener to the overlay?
Thanks,
kalyson
--
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.