Skip to content

Latest commit

 

History

History
40 lines (22 loc) · 1.11 KB

mapstylesheet_tryparsefromjson_599503431.md

File metadata and controls

40 lines (22 loc) · 1.11 KB
-api-id -api-type
M:Windows.UI.Xaml.Controls.Maps.MapStyleSheet.TryParseFromJson(System.String,Windows.UI.Xaml.Controls.Maps.MapStyleSheet@)
winrt method

Windows.UI.Xaml.Controls.Maps.MapStyleSheet.TryParseFromJson

-description

Creates stylesheet by parsing a JSON markup string that defines a set of custom rules.

-parameters

-param styleAsJson

A JSON markup string that defines a set of custom rules.

-param styleSheet

The MapStyleSheet that will represent the rules defined in JSON markup string.

-returns

true if the operation completed successfully; otherwise, false.

-remarks

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.

-see-also

-examples