I have a map in which I want to add 2 buttons viz. zoom in and zoom out. On the click of first button my should zoom in and on the click of second button my map should zoom out. How is this possible?
Zoom IN:
- (IBAction) zoomInClicked:(id)sender
{
// when zoom button is clicked, zoom on a specific region
// make region for the map to show as zoom in
[myMapView setRegion:region animated:YES];
}
zoom Out:
- (IBAction)zoomOutClicked:(id)sender
{
// make region for the map to show as zoom out
[mapView setRegion:region animated:YES];
}