My page is at temporary site 
http://www.opalexplorenature.org/urban-trees/test.php

Use the scroll bar to scroll all the way in
Click the add a tree button
this adds a marker
now click the x in the infowindow to close the infowindow AND delete
the marker.
Works fine.

Now add another marker  by clicking on the add a tree button.
Do the same as above -  click the x in the infowindow to close the
infowindow AND delete the marker. Note the alert comes up twice - and
there is an error that markerArray[removeMarker] is undefined.

I am confused because if you clicking on the add a tree button, drag
the marker then click cancel it works fine.

Is it because google.maps.event.addListener(infoWindow, "closeclick",
function()  doing two things - closing the window and deleting the
marker?

thanks

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

Reply via email to