I am trying to answer in this post, but after trying for some times, the message doesn't appear even after hours, so I'm sorry I have to open a new thread.
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/595cab9a144e3532/7349b9cacc6be662?lnk=gst&q=pdmarker+marker+manager#7349b9cacc6be662 Hi everybody, I also have conflicts between PdMarker and Marker Manager (from the Google Maps API). When I want to add the markers to the map I do the following: var marker = new PdMarker(point, options); markerMgr.addMarker(marker, 0); The problems appear when I want to remove the markers from the map: //Remove markers var first=true; for (var i=0; i<markers.length; i++){ var m = markers[i]; if(m != null){ if (first==true) { m.removeAllBinds(); first=false; } map.removeOverlay(m); m.remove(1); google.maps.Event.clearInstanceListeners (m); } } markers.clear(); After iterating some markers and deleting them correctly, I get this error: map is undefined http://localhost:8080/gmapsPdmarker.js Line 268 The error is in the method removeMarkerFromMapList(); and then the markers stop working (can't add or remove them more). Could you give me some ideas? Thank you in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
