> Im not sure how though to make the markers specific if its reading in
> my states.xml to know which data goes with which state....

See
http://econym.org.uk/gmap/basic3.htm
and view the source of the example.
Within the callback of GDownloadUrl is a for-loop that gets the
location of each marker from the XML plus the text to use in its
infowindow.  It gets each <marker> in turn from the XML, and hands
those bits of data off to a 'createMarker()' function.

Replicate that logic with your polys. You already get info like 'name'
and 'colour' from the XML in that way.   You will need to restructure
your existing code to make a click listener for each poly to do it
this way, rather than have just one listener for the whole map.

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

Reply via email to