Class JsonStyleFactory
Package com.here.sdk.mapview
Class JsonStyleFactory
- java.lang.Object
-
- com.here.NativeBase
-
- com.here.sdk.mapview.JsonStyleFactory
-
public final class JsonStyleFactory extends NativeBase
A factory of
Styleobjects from styles defined in JSON format. For more details see Custom Layer Style Reference in the documentation.Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJsonStyleFactory.InstantiationErrorCodeDescribes reasons for failing to create aStylefrom a JSON source.static classJsonStyleFactory.InstantiationErrorDetailsDescribes the reason for failing to create aStylefrom a JSON source.static classJsonStyleFactory.InstantiationExceptionThrown when failing to create aStylefrom a JSON source.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StylecreateFromString(java.lang.String styleString)Creates an instance of Style from a JSON string.
-
-
-
Method Detail
-
createFromString
@NonNull public static Style createFromString(@NonNull java.lang.String styleString) throws JsonStyleFactory.InstantiationException
Creates an instance of Style from a JSON string.
- Parameters:
styleString-JSON style string.
- Returns:
Style instance.
- Throws:
JsonStyleFactory.InstantiationException-Indicates failure to create
Stylefrom JSON string.
-
-