the key to making it work is to have a seperate
function to re-use when creating each poly and attaching a listener
to
it, and to pass in to that the poly data and infowindow content
Write a function like
MakeMeAPoly ( points, colour, html) {
Write some code that builds the poly and puts it on the map
Write some code that attaches an click listener *to this poly* and
opens an infowindow using the supplied html
}
In your XML parsing loop, assemble the data for each poly and use that
data when calling the new function.
You don't need the click listener on the map.
You don't need any point-in-poly analysis.
Look again at Mike's example 1
http://econym.org.uk/gmap/basic1.htm
understand how that works, and apply the same flow to your code.
--
You received this message because you are subscribed to the Google Groups
"Google Maps API V2" 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.