Authored by Obrand69

Added method to hide all markers (hide the overlay) or unhide it.

Could be useful in some cases where at certain level of zoom, we just want to hide them
... ... @@ -85,6 +85,10 @@
[mapView getScreenCoordinateBounds];
[markerManager hideAllMarkers];
[markerManager unhideAllMarkers];
/* CLLocationCoordinate2D newLocation;
newLocation.latitude = -33.9495;
newLocation.longitude = 151.2381;
... ...
... ... @@ -32,4 +32,7 @@
- (CLLocationCoordinate2D) getMarkerCoordinate2D: (RMMarker *) marker;
- (NSArray *) getMarkersForScreenBounds;
- (void) hideAllMarkers;
- (void) unhideAllMarkers;
@end
... ...
... ... @@ -92,4 +92,14 @@
return markers;
}
- (void) hideAllMarkers
{
[[contents overlay] setHidden:YES];
}
- (void) unhideAllMarkers
{
[[contents overlay] setHidden:NO];
}
@end
... ...