MapStyleSheet.TryParseFromJson(String, MapStyleSheet) 메서드

정의

사용자 지정 규칙 집합을 정의하는 JSON 태그 문자열을 구문 분석하여 스타일시트를 만듭니다.

public:
 static bool TryParseFromJson(Platform::String ^ styleAsJson, [Out] MapStyleSheet ^ & styleSheet);
 static bool TryParseFromJson(winrt::hstring const& styleAsJson, [Out] MapStyleSheet const& & styleSheet);
public static bool TryParseFromJson(string styleAsJson, out MapStyleSheet styleSheet);
Public Shared Function TryParseFromJson (styleAsJson As String, ByRef styleSheet As MapStyleSheet) As Boolean

매개 변수

styleAsJson
String

Platform::String

winrt::hstring

사용자 지정 규칙 집합을 정의하는 JSON 태그 문자열입니다.

styleSheet
MapStyleSheet

JSON 태그 문자열에 정의된 규칙을 나타내는 MapStyleSheet 입니다.

반환

Boolean

bool

작업이 성공적으로 완료되면 true입니다. 그렇지 않으면 false입니다.

설명

JSON 문자열에서 스타일을 정의하는 데 사용할 수 있는 속성에 대한 자세한 내용은 지도 스타일시트 참조를 참조하세요.

JSON 태그 문자열에 오류가 있는 경우 이 메서드는 예외를 throw하지 않습니다. 대신 false를 반환 합니다.

적용 대상