Basically I have written a method like the one below. Problem is it
doesn't handle the markers if they are groups:
public function showHideMarkers():void{
var i:uint = 0;
var l:uint = _locations.length;
var pos:LatLng;
var bounds:LatLngBounds = _map.getBoundsLatLng();
var marker:IOverlay;
for(i; i<l; i++){
marker = getObjectById(i) as IOverlay;
pos = marker.position; //fails for a grouping from a marker
manager
//hide or show marker based on position
if(bounds.containsLatLng(pos)){
marker.show();
}else{
marker.hide();
}
}
}
anyone have a good example of doing the same thing? It works fine if I
turn off the marker manager. but with it on it causes all kinds of
issues.