On Sep 27, 8:10 am, Chad Killingsworth <[email protected]> wrote: > You can't do that with KML.
using KmlLayer > 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. or a third party kml parser. Currently the only one I know of is geoxml3: http://code.google.com/p/geoxml3/ But that is no where near as mature as the third party parsers for v2 (it does't (yet) support polylines or polygons). -- Larry > > 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/(moveyour cursor over > > the map) > > > Thanks :-)- Hide quoted text - > > - Show quoted text - -- 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.
