CreateLayersFromGeoJsonParams
The parameters for the LayersController.createLayersFromGeoJson method.
Properties
name
name:
string
The name of the layer to create.
source
source:
GeoJsonUrlVectorSource|GeoJsonDataVectorSource|GeoJsonFileVectorSource
The source of the GeoJSON data.
bounds?
optionalbounds: [number,number,number,number]
Sets the bounds of the layer.
caption?
optionalcaption:string
Sets the caption of the layer.
description?
optionaldescription:string
Sets the description of the layer.
geometryStyles?
optionalgeometryStyles: {Point:object;Line:object;Polygon:object; }
The styles to apply to each geometry on the layer.
Each style should be a valid FSL style, as described in Layer.style.
These are optional, and if missing will use a default style determined by Felt, which you can consider to be undefined behaviour.
Point?
object
Line?
object
Polygon?
object
Example
Last updated
Was this helpful?