Hey all, i have a block that should update the marker icon image on my
markers in an array of markers.
it looks like this
google.maps.event.addListener(map, "bounds_changed",function(){
for (index in markers_array_a){
rain_sensor_id =
marker_stats_a[index].rain_sensor_id;
newImageIcon = new Ajax.Request("/pivrain3/
update_rain_marker_image?rain_sensor="+rain_sensor_id,
{asynchronous:true, evalScripts:true});
markers_array_a[index].setMap(null);
markers_array_a[index].setIcon(newImageIcon);
markers_array_a[index].setMap(map);
}
});
i cannot tell what i am doing wrong,
please help, and thanks
sk
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.