fromJSON MethodStatic
Create a base layer from its JSON representation. TODO: This, MapLayerSettings.fromJSON, and MapSubLayerSettings.fromJSON should never return undefined. That means they should not accept undefined for props and should define props such that it fully describes the layer - e.g., url and name must be defined.
fromJSON(props: BaseMapLayerProps): BaseMapLayerSettings
Parameter | Type | Description |
---|---|---|
props | BaseMapLayerProps |
Returns - BaseMapLayerSettings
Defined in
- core/common/src/MapLayerSettings.ts Line 564
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.