-api-id | -api-type |
---|---|
M:Windows.UI.Xaml.Controls.Maps.MapStyleSheet.TryParseFromJson(System.String,Windows.UI.Xaml.Controls.Maps.MapStyleSheet@) |
winrt method |
Creates stylesheet by parsing a JSON markup string that defines a set of custom rules.
A JSON markup string that defines a set of custom rules.
The MapStyleSheet that will represent the rules defined in JSON markup string.
true if the operation completed successfully; otherwise, false.
To learn more about the properties that you can use in your JSON string to define styles, see Map stylesheet reference.
If there's an error in the JSON markup string, this method does not throw an exception. Instead, it returns false.