Domanda

I have an app at which I want to only turn on certain functionality when the map I am displaying (via MKMapView).

Is there a way of determining if the map view is at max. zoom level, or do I need to put some sort of region threshold in and test against that?

Thanks

È stato utile?

Soluzione

This answer points to MKMapViewZoom category that will return you current zoom level.

In this article Troy Brant explains that map can have zoom levels from 0 to 20. It's true either for Google or for Apple maps, because both are in mercator projection. So the solution will work in iOS 5.x-7.x

You should check experimentally what zoom level (or range of them) fits to you needs.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top