Ok, my map is at www.meadowlarkco.com/regulationsmap.html, my xml file
is located at www.meadowlarkco.com/states.xml. The xml file now
includes an attribute 'html' for testing on Alaska which would read
"This is Alaska" when the user clicks on Alaska.

Ive added the variable for html within the regulations map to grab
that attribute but not sure what else I need to add in?

Any help would be appreciated

thanks

On Jan 23, 4:50 pm, Rossko <[email protected]> wrote:
> > 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....
>
> Seehttp://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