On Jun 15, 12:36 pm, Sgara <[email protected]> wrote: > I'm having troubles with markermanager. > I have a for cicle that performs a series of ajax call, each one > creates a marker that I add to my markermanager with > addMarker(marker, 11, 18). > But those markers stay in the map also under the level 11 of zoom. > > I have a button witch fires a refresh() on the markerMager when the > markers are loaded, it also shows an alert which prints the result of > markerManager.getMarkerCount(i) at each zoom level. > As expected, getMarkerCount(i) with i >= 11 gives me the whole number > of the added markers and, if i reach that level of zoom the > markermanager.shownMarkers attribute becomes > 0, if I have a > zoomlevel <11, markermanager.shownMarkers becomes 0, but all the > markers are still visible. > > What can be the cause for markers don't obey minzoom?
Wild guess (you didn't provide a link to your map as requested in the posting guidelines): you are adding the markers to the map yourself instead of letting the marker manager do it... -- Larry -- 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.
