Map.MapStyle Property

Definition

Gets or sets the custom map style as a JSON string. This is a bindable property.

public:
 property System::String ^ MapStyle { System::String ^ get(); void set(System::String ^ value); };
public string? MapStyle { get; set; }
member this.MapStyle : string with get, set
Public Property MapStyle As String

Property Value

Remarks

This property is only supported on Android where it accepts a Google Maps style JSON string generated from the Google Maps Styling Wizard (https://mapstyle.withgoogle.com/). On iOS, MacCatalyst, and Windows this property has no effect as the native map controls do not support custom JSON styling. Set to null to revert to the default map style.

Applies to