2 Replies Latest reply on Apr 17, 2012 6:38 AM by ebrightc

    zoom back and zoom foreward

    promethia73
      Hi
      i have a quastion.
      How i can create the commands for zoom back and foreward?
      some suggestions?
        • Re: zoom back and zoom foreward
          njarecha-esristaff
          Yes, it is possible to create these commands. Here are the steps you should follow...

          1. Create a retain property of NSMutableArray.
          2. Listen to the "MapDidEndZooming" notification.
          3. Add self.mapView.visibleArea.envelope to the array created in step 1.
          4. From "Go Back" and "Go Forward" get the respective extent and zoom.

          Regards,
          Nimesh
          • Re: zoom back and zoom foreward
            ebrightc
            There are also methods of the mapView that you can use, for example, i have a project that has buttons for zoom in and zoom out and i set the actions on those as follows:

            -(void)didTapZoomInButton:(id)sender {
                
                [self.mapView zoomIn:YES];
            
            }
            
            -(void)didTapZoomOutButton:(id)sender {
                
                [self.mapView zoomOut:YES];
                
            }