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 7026359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:06:23+00:00 2026-05-28T00:06:23+00:00

I want to know is it possible to show only specific region on map

  • 0

I want to know is it possible to show only specific region on map not the full world map using Map Kit.
Like if i want to show Asia map in my application then map kit hides remaining part of the map.

  • 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-05-28T00:06:24+00:00Added an answer on May 28, 2026 at 12:06 am

    To handle the “map kit hides remaining part of the map” requirement, one thing you can do is create a black polygon overlay that covers the whole world with a cutout over Asia (or wherever you like).

    For example, where you initialize the map (eg. in viewDidLoad):

    CLLocationCoordinate2D asiaCoords[4] 
        = { {55,60}, {55,150}, {0,150}, {0,60} };
          //change or add coordinates (and update count below) as needed 
    self.asiaOverlay = [MKPolygon polygonWithCoordinates:asiaCoords count:4];
    
    CLLocationCoordinate2D worldCoords[4] 
        = { {90,-180}, {90,180}, {-90,180}, {-90,-180} };
    MKPolygon *worldOverlay 
        = [MKPolygon polygonWithCoordinates:worldCoords 
                     count:4 
                     interiorPolygons:[NSArray arrayWithObject:asiaOverlay]];
                       //the array can have more than one "cutout" if needed
    
    [myMapView addOverlay:worldOverlay];
    

    and implement the viewForOverlay delegate method:

    -(MKOverlayView *)mapView:(MKMapView *)mapView viewForOverlay:(id<MKOverlay>)overlay
    {
        if ([overlay isKindOfClass:[MKPolygon class]])
        {
            MKPolygonView *pv = [[[MKPolygonView alloc] initWithPolygon:overlay] autorelease];
            pv.fillColor = [UIColor blackColor];
            pv.alpha = 1.0;
            return pv;
        }
    
        return nil;
    }
    

    This looks like this:

    enter image description here

    If you also want to restrict the user from scrolling beyond Asia or zooming too far out, then you’ll need to do that manually as well. One possible way is described in Restrict MKMapView scrolling. Replace theOverlay in that answer with asiaOverlay.

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

Sidebar

Related Questions

i want know if is possible, to get a specific element value of a
I want to know if it's possible to register a type library without using
i want to know if it possible to access the browser bookmarks via Flash.
I am creating a CMS and want to know if its possible to download
Basically, I just want to know if its possible to use Nhibernate to migrate
I want to know whether it is possible to commit to a previous version.
I want to know if it is possible to stream data from the server
I want to know if it is possible to call an activity through background
I want to know whether it is possible to transform Relax NG XML with
So what I want to know is whether the following is possible. I have

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.