On Jan 4, 3:04 pm, Martin Samm <martin.s...@gmail.com> wrote:
> i seem to be going round in circles and cant find an answer to this.
> I'm adding a KmlLayer to a map, reading in a series of Placemarks (each of
> which contains MultiGeometry/Polygon) definitions. There are lots of
> placemarks.
> I need to do 2 things:
> 1. Once the layer has loaded, colour some of the polygons (i.e. go through
> the polygons and set a fill colour for some)
> 2. when a click is performed, detect which (if any) polygon it is inside.
> Is this possible? If so, how?

Not with KmlLayer.  You can do it with geoxml3 or geoxml_v3, the third
party parsers for kml, which render the Placemarks as native v3 google
maps objects.  You might be able to do it with a FusionTables layer
and dynamic styling.

I have a number of examples using geoxml3 to do things like this at
http://www.geocodezip.com

But if your kml is complete it won't perform well.

  Larry


> Many thanks
> Martin

-- 
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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to