You can't do that with KML. Kml files are rendered on Google's servers
and sent to the client as image tiles. You can get metadata for events
like mouse clicks (but not mouse overs), but you can't make changes to
the kml data without causing new image tiles to be downloaded.

For an effect like on the map you linked, you'd need to use
traditional polygons.

Chad Killingsworth

On Sep 26, 9:57 am, Jarode <[email protected]> wrote:
> Hi,
>
> How to add a listener to a <placemark> or a <polygon> of a kml file ?
> Despite of my several hours of search, I have not found yet.
>
> I have a kml file which contain several <placemark> and <polygon>, I
> would like to have a custom listener/event for each of these
> elements.
>
> My final goal is to change the fillColor of a <polygon> on mouseover
> event.
>
> Finaly the result would be similar to what you see in this web page
> but using google map JS API.http://www.leboncoin.fr/(move your cursor over 
> the map)
>
> Thanks :-)

-- 
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.

Reply via email to