Not entirely easy, as KML/KMZ is very easy to use but rather limiting. First you'd have to read your KMZ with another parser, like Mike's EGeoXml: http://econym.org.uk/gmap/egeoxml.htm so that you can get access to the individual polygons within the file, which GGeoXml doesn't give you.
Then, you'd have to do point-in-polygon analysis, to determine which polygon contains the point. You can do that with Mike's EPoly: http://econym.org.uk/gmap/epoly.htm -- Marcelo - http://maps.forum.nu -- On Oct 8, 3:53 pm, burky34 <[email protected]> wrote: > I am a grad student, and I am attempting to build a very simple google > api for a class project. The link can be found at the > followinghttp://mysite.verizon.net/bizzoi1s/indexbackup.html > > My question is, how do I get the kml data of the polygons to appear > automatically in the popup window when a geocoded address is entered? > If you click Go and just use the default address, you’ll see the > address and a statement of when the leaves will be collected that I > have hard coded, but I need to automatically populate the info window > with the correct date, depending on if the address point falls in the > green (November 2 – November 25) or the blue area (November 30 – > December 23). The date data is stored in a kml file, which is a > requirement for my project. I've already met the requirements with > what I have, but this is just a little extra step that I find useful. > If the polygons are clicked, the data appears, but again, I need it to > automatically display the appropriate date in the info window. No > sidebar is needed, nor is it desired since there is text that is > displayed. > > Thank you for your help, > Carrie --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
