Optional
baselayerOptional
idOptional
itemOptional
layerOptional
mapOptional
nameOptional
orderOptional
selectedTrue if there are selected features in the layer
Optional
sourceExperimental option, only for MVT. Points to a data source instead of loading data into a layer.
Optional
addOptional
beforeOptional
clearOptional
closeOptional
findFeatureCb: DataLayerFilter<F, L>Optional
filterAbility to filter a layer with a callback function. It is necessary for the adapter to provide access to the layer objects before output to the map. It is not possible to apply such a filter to vector tiles and data on the remote server. So, where possible, use the VectorLayerAdapter.propertiesFilter.
layer.filter((e) => e.feature.properties.id === 2011);
// but in this case it’s better to do so:
layer.propertiesFilter([['id', 'eq', 2011]])
Optional
getOptional
getOptional
getOptional
getGet the filtered objects of the vector layer.
Optional
getAllows to get all vector objects of the layer. Does not work for vector tiles.
Optional
getOptional
options: GetLegendOptionsOptional
getGet the selected objects of the vector layer.
Optional
hideOptional
hideOptional
isOptional
onCallback function that will be called when clicking on a layer.
Data that is transmitted when you click on a layer.
Optional
openOptional
findFeatureCb: DataLayerFilter<F, L>Optional
options: PopupOptions<Feature<Geometry, GeoJsonProperties>, any>Optional
propertiesThe way to filter layer objects through serializable expressions.
To clear the filter, pass null
or undefined
as the second parameter.
Filter, conforming to the PropertiesFilter expression specification's.
Optional
options: FilterOptions<(F extends Feature<Geometry, GeoJsonProperties>Options object.
layer.propertiesFilter(['all', ['color', 'eq', 'green'], ['year', 'gt', 2011]]);
layer.propertiesFilter([[
'any',
['color', 'eq', 'green'],
['color', 'eq', 'red']
],
['year', 'gt', 2011]
]);
Optional
removeOptional
removeOptional
selectMethod for selecting objects on the map. The selectedPaint
option will be applied to the selected objects.
Optional
findFeatureCb: PropertiesFilter | DataLayerFilter<F, L>It is strongly recommended to use an PtropertiesFilter
expression to set selected objects,
since the selecting by the callback function is not supported by vector tiles and other asynchronous adapters.
Optional
setOptional
setOptional
setOptional
setOptional
showOptional
showOptional
unselectDeselect all objects in the vector layer.
Optional
findFeatureCb: PropertiesFilter | DataLayerFilter<F, L>The parameter findFeatureCb
is deprecated and will be deleted soon.
Instead, it’s better to deselect all and select again.
Optional
updateOptional
updateOptional
updateOptional
updateOptional
layerDef: LayerDefinition<F, L>Generated using TypeDoc
Adapter for vector data display control.