Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to highlight countries in ios maps

Tags:

I am building an app in which I have to highlight some countries dynamically in the world map. like this

enter image description here

In short I want to customize the whole view of ios maps as shown in the images. can this be done using MapKit or is there any other method. Thanks in advance

like image 821
Rajesh Avatar asked May 24 '13 10:05

Rajesh


People also ask

How do I mark multiple locations on iPhone Maps?

To do that on an iPhone, tap More at the bottom of the screen, tap Route, tap the plus (+) button, and then take the necessary steps to create your first destination. Once you've done that tap Add to Route at the top of the screen. Tap the plus button again and create another destination.

How do you customize Maps on iPhone?

In the Maps app , you can quickly find your settings for preferences, guides, favorites, and more. Tap your picture or initials at the top right of the search card, then choose an option.

How do I highlight countries on Google Maps?

To achieve this, you will basically need to look for the coordinates of the state or country on GADM. Once you have them, draw a shape on the Google Maps with the Polygon object providing an array with all the coordinates that play basically as borders of the place that you want to highlight.


1 Answers

You want to look into the Mapbox iOS SDK which will allow you to do this and more with a MapKit-like API. In particular, you will want to quickly make a custom map with TileMill using the provided Natural Earth data set for world country borders, enable UTFGrid interactivity so that the tapped regions can be identified, and use the RMShape class on an RMAnnotation onto the map view to add/color country polygons as needed. This sounds a little complex but the tools exist, are entirely free and open source, and I can help you with this process.

like image 171
incanus Avatar answered Sep 25 '22 06:09

incanus