> map.addOverlay(marker);
> if(jsonData[i].id == 2161){
> if(!map.addOverlay(marker)){
> alert('add overlay not working!');
addOverlay doesn't return a meaningful value
http://code.google.com/apis/maps/documentation/reference.html#GMap2.addOverlay
your test will always report failure on that 'id' value, after having
added it twice.
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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.