Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom map style in MapKit

I am looking for a way to implement a custom map style in iOS 7, just like you can do with Google Maps. I have found some posts saying that this is not possible with MapKit, but they are all posted a while back. To clarify, by style I am talking about custom colors and preferably also fonts. Example of custom Google Map style below.

enter image description here
(source: servendesign.com)

I would really prefer using MapKit for performance reasons, but if it is not supported I am open to using other frameworks as well. The ones that I have seen are MapBox and Cloudmade, and of course the Google Maps SDK.

Is there a way of doing it with MapKit? If not, what is the best way to go?

like image 206
Daniel Larsson Avatar asked Nov 28 '13 20:11

Daniel Larsson


People also ask

How do I install a custom map style?

Create your own map style by following the steps :Click on the custom style. Go to Google's Map Style wizard and create the style you want. Copy the JSON from the above step and paste it into the " Map Style (JSON text) " area. Save your style and it should be good if it passes validation.

Is MapKit a framework?

You can use the MapKit framework to: Embed maps directly into your app's windows and views. Add annotations and overlays to a map to call out points of interest.

What is MapKit framework in iOS?

MapKit is a powerful API available on iOS devices that makes it easy to display maps, mark locations, enhance with custom data and even draw routes or other shapes on top.


1 Answers

MKMapView does not expose the properties you're interested in customizing. The Google Maps SDK does support custom colors and icons for markers, which may be sufficient for your purposes.

Edit: Stay tuned for iOS 11, which may offer this level of customization.

like image 80
Marco Avatar answered Oct 15 '22 11:10

Marco