草庐IT

MKZoomScale

全部标签

ios - 如何将 MKZoomScale 转换为标准 [0-20] 缩放级别?

我想根据Googlemap等map平台使用的标准[0-20]缩放级别在drawMapRect:zoomScale:inContext:中编写一些绘图规则,但我不能似乎找到了将MKZoomScale转换为该比例的公式。有没有人要? 最佳答案 在MKMapView上尝试这个类别@interfaceMKMapView(Additions)-(double)zoomLevel;@end@implementationMKMapView(Additions)-(double)zoomLevel{doubletotalTilesAtMaxZoom