Map.MapStyle Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.