2

I am using Mapbox-iOS-SDK 2.1.2 and I need to know when the user changes zoom level on the map view. I know how to get the current zoom level, but I don't see any delegate methods for determining when the zoom level actually changed.

My reason is I am trying to mimic the scale dependencies functionality found in ESRI, and I only want to display annotations for records in the local data store when the zoom level is 15+.

Does anyone know if Mapbox supports notification when the zoom level has changed?

Or, does Mapbox support scale dependencies? If it does and I'm missing it, please let me know as that would save me from rolling my own version.

1 Answer 1

2

You can check if zoomLevel was changed in delegate mapView:regionDidChangeAnimated:

(void)mapView:(MGLMapView *)mapView regionDidChangeAnimated:(BOOL)animated

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.