Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8203019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:23:51+00:00 2026-06-07T07:23:51+00:00

When I load my mapView I have only one tick – user location. After

  • 0

When I load my mapView I have only one tick – user location. After some actions I’m adding more pins. But focus is still in user location. I want to magnify the image in order to see all targets. How can I do this?
My code:

-(void)mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray *)views {
    if (views.count == 1) {
        MKAnnotationView *annotationView = [views objectAtIndex:0];
        id<MKAnnotation>mp = [annotationView annotation];
        MKCoordinateRegion region = MKCoordinateRegionMakeWithDistance([mp coordinate], 500, 500);
        [mapView setRegion:region animated:YES]; 
    } else {
        for (NSUInteger i = 0; i<views.count; i++) {
            [mapView addAnnotation:[views objectAtIndex:i]];
        }

    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T07:23:54+00:00Added an answer on June 7, 2026 at 7:23 am

    MkCoordinateRegion has a member called span. In order to zoom in/out , you have to play with that value:

    region.span.longitudeDelta = aValue;
    region.span.latitudeDelta = aValue;
    

    Hope this helps.

    Cheers!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two bitmaps that differ only by color. The green one is used
I am having some issues getting tiles to load into my MapView in android
I am using a Webview and some css3 to load an image and have
I have a .xib file where the user can enter a location name of
I load content via Ajax and then I'll have element like $('.my_content_class') and I
ViewA load some data from Coredata, then push to the next viewB . In
i load a class using Class.forName(klassname,false,loader) After this i create an instance using klass.newInstance();
I have to load huge (3000x3000) pictures in SWFLoader, and no problems with that
I have an app on the android market, which uses the mapview to display
I am loading a mapview into a viewcontroller's view. When I load the mapview,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.