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

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top