This property can be used to store anything application-specific on layers; as its content may occasionally be serialized to JSON for change detection purposes, it is not recommended to store Functions or other non-serializable entities
LayerGeojson.extras
hoverable?
boolean
Whether features on the layer can be picked up using the feature-hover event. Mostly has an effect only for vector layers. Default value is false.
LayerGeojson.hoverable
hoverStyle?
FlatStyleLike
-
LayerGeojson.hoverStyle
id?
string | number
An optional identifier for the layer; if provided, will improve performance when the layers is updated through a context diff.
LayerGeojson.id
label?
string
Optional label for the layer, typically used to represent the layer in a layer list or when showing a popup above a feature.
LayerGeojson.label
opacity?
number
Opacity level; between 0 and 1. Default value is 1 (fully opaque).
LayerGeojson.opacity
style?
FlatStyleLike
-
LayerGeojson.style
type
"geojson"
-
LayerGeojson.type
url?
undefined
-
-
version?
number
Optional version indicator; if provided, must be increased by the application for the change detection to trigger, otherwise the SDK will consider that the layer is unchanged.
LayerGeojson.version
visibility?
boolean
Whether the layer is visible or not on the map. A non-visible layer will still have its data queried and kept in memory, so switching this on/off shows immediately on the map. Default value is true (visible).