On 22 déc, 22:18, Rossko <[email protected]> wrote:
> > What I have done :
> > - draw three polygons using GGeoXML from three different KML files and
> > using addOverlay(var);
> > - center the map.
>
> It isn't easy to alter the behaviour of overlays made with GGeoXml.
> See -http://econym.org.uk/gmap/interceptor.htm
> for some possibilities.
>
> Note also the suggestion to use one of the alternative client-side KML
> parsers, which allows you diret access to the overlays they create.

A quick look on the link you gave and if I understand it right, it is
possible to get the name of one polygon and an id. How do you get
these informations ? Once you have the name or the id of the polygon,
is it possible to apply an event on that polygon ?

Or, maybe a better way of doing it is to use EGeoXML and then try to
determine if the click is in a polygon using EPolys. But it's quite
complicated and maye it wouldn't be really effective since I've gote
three different polygons based on three different kml files.

Also : it's possible to merge these three KML files (but still have
three polygons) but I figured it would be easier to get an id or the
name of the polygon to create an event on. Am I right about that ?

--

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.


Reply via email to