JsonStyleFactory (API Reference)
Package com.here.sdk.mapview
Class JsonStyleFactory
java.lang.Object
com.here.NativeBase
com.here.sdk.mapview.JsonStyleFactory
A factory of Style objects 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic StylecreateFromString(String styleString) Creates an instance of Style from a JSON string.
-
Method Details
-
createFromString
@NonNull public static Style createFromString(@NonNull 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.
-