Hi
I am having trouble with the clearMarkers() method of markerclusterer.
Please see http://mc.glazebrooknet.com for files and demo.
To re-produce issue:
1.       Click ‘Apt / housing’ under ‘Apartments’ in the left-hand
column. A number of markers are shown.

2.       Zoom in once on map.

3.       Click ‘home’ – this should clear the markers but it does not.

If you refresh the page and follows these steps, it does work:
1.       Click ‘Apt / housing’ under ‘Apartments’ in the left-hand
column. A number of markers are shown.

2.       Do not interact with map at all.

3.       Click ‘home’ – this clears all markers.


It works as expected if I just click ‘Home’ without zooming in or out
on the map.

I have previously tried putting a loop in to kill the markers with the
setMap(null) method (the Google marker array shows them as being
present), but they did not disappear. I also tried the repaint()
method after clearMarkers() but it made no difference.

Relevant files are:
 js/map_functions.js
js/markerclusterer.js
js/general_page.js

Thank you for your suggestions.

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