Will
Will

Reputation: 3044

Zoom in further than google map max zoom.

Im making a MKMapView with an overlay and im not really using the map for anything else than the coordinates so dont need to see the roads or what not.

The problem that im running into is that my overlay is in a small geographical area so it stops me zooming in far enough to see the overlay properly.

Is there a away to go past this zoom limit?

Upvotes: 1

Views: 159

Answers (1)

Alessandro
Alessandro

Reputation: 361

Have you tried to increment programmatically the latitudeDelta and longitudeDelta of the region span attribute?

CLLocationCoordinate2D coord1 = { region_x, region_y };
MKCoordinateSpan span = {.latitudeDelta = 1, .longitudeDelta = 1};
MKCoordinateRegion region = {coord1, span};
[_mapView setRegion:region animated:YES];

For details: MKMapView Zoom and Region

Upvotes: 1

Related Questions