I need to colorize the native iOS map with a dark style. But I'm not sure if this is possible. Mb somebody did it before??
Which map nuget package do you used?
If you use Xamarin.Forms.Maps, it does not have Night Mode. But you can create a custom renderer for Map in iOS. (To have it in light mode would be UIUserInterfaceStyle.Light)
[assembly: ExportRenderer(typeof(CustomMap), typeof(CustomMapRenderer))]
public class CustomMapRenderer : MapRenderer
protected override void OnElementChanged(ElementChangedEventArgs<View> e)
var nativeMap = Control as MKMapView;
I create CustomMap in PCL.
public class CustomMap : Map
Then use it in the Contentpage.
Here is running screenshot.
If you use Xamarin.Essentials: Map to open external map. We cannot find a way to set it.
Xamarin forums are migrating to a new home on Microsoft Q&A!
We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A!
For more information, please refer to this sticky post.
@LeonLu, thank u so much C:
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies