Dixit Akabari
Dixit Akabari

Reputation: 2547

How to change Apple Map (MKMapView) background colors?

enter image description here

I've Required an iOS application with a black theme, and would really like to make the displayed Apple Map also in black colors.

I see nothing in the native documentation that talks about changing look for MKMapView.

I've Googled the topic and tried to change MKOverlayView.But, I couldn't find anything.

Is this even possible? Can I change the background colors of the Apple Map.

Thank you.

Upvotes: 6

Views: 8757

Answers (1)

arpita
arpita

Reputation: 175

You can customize map using MapBoxKit

https://www.mapbox.com/ios-sdk/api/3.6.4/runtime-styling.html

In Mapkit you can only set dark mode as hybrid as follow:

in viewDidLoad write below code:-

 mapView.mapType = .Hybrid

enter image description here

Need to add Privacy - Photo Library Usage Description in info.plist

also you can set from IB as above:-

enter image description here

Upvotes: 0

Related Questions