I am building an app in which I have to highlight some countries dynamically in the world map.
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
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With