¡@

Home 

2014/10/16 ¤W¤È 12:09:23

jquery Programming Glossary: the_marker

Looping through Markers with Google Maps API v3 Problem

http://stackoverflow.com/questions/2670356/looping-through-markers-with-google-maps-api-v3-problem

clicks the last marker. Im not sure why though because the_marker is set up the same way. How can I fix this Updated with new.. 'mapdata.xml' function xml 'location' xml .each function i the_marker new google.maps.Marker title this .find 'name' .text map map.. 'description' .text new google.maps.event.addListener the_marker 'click' function infowindow.open map the_marker javascript..

Looping through Markers with Google Maps API v3 Problem

http://stackoverflow.com/questions/2670356/looping-through-markers-with-google-maps-api-v3-problem

but what happens is no matter what marker I click on it always clicks the last marker. Im not sure why though because the_marker is set up the same way. How can I fix this Updated with new jQuery XML function var latlng new google.maps.LatLng 45.522015.. document.getElementById map_canvas settings .get 'mapdata.xml' function xml 'location' xml .each function i the_marker new google.maps.Marker title this .find 'name' .text map map clickable true position new google.maps.LatLng parseFloat.. infowindow new google.maps.InfoWindow content this .find 'description' .text new google.maps.event.addListener the_marker 'click' function infowindow.open map the_marker javascript jquery xml google maps loops share improve this question..