In MKMapView
in some zoom lvl all map tiles are blank.
I try solution with max zoom.
For now I use it like this:
func mapView(mapView: MKMapView, regionDidChangeAnimated animated: Bool) {
userSpan = mapView.region.span
if mapView.zoomLevel() > maxZoomLvl
{
mapView.setCenterCoordinate(mapView.centerCoordinate, zoomLevel: maxZoomLvl, animated: true)
}
}
But when user zoom to max lvl it zoom back with animation. But I need some solution like in native apple map application: just block in max zoom without ability to zoom deep and without zoom back. Expected result:
- Avoid bland tiles in max zoom and zoom back bounce (like it work now with current solution)
- Map should stop zooming if there no tiles (Like native apple map app) OR map should scale last visible tiles(like google maps app)