+ Reply to Thread
Results 1 to 3 of 3

Thread: zoom back and zoom foreward

  1. #1
    Luca Alferi
    Join Date
    Apr 2012
    Posts
    18
    Points
    0
    Answers Provided
    0


    0

    Default zoom back and zoom foreward

    Hi
    i have a quastion.
    How i can create the commands for zoom back and foreward?
    some suggestions?

  2. #2
    Nimesh Jarecha

    Join Date
    Oct 2009
    Posts
    883
    Points
    489
    Answers Provided
    105


    0

    Default Re: zoom back and zoom foreward

    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

  3. #3
    Christopher Ebright
    Join Date
    Jan 2010
    Posts
    33
    Points
    0
    Answers Provided
    0


    0

    Default Re: zoom back and zoom foreward

    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:

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

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts