Interface LayerGroupFunctions
- All Superinterfaces:
ExecutableFunctions,Identifiable
- All Known Implementing Classes:
FeatureGroup,LayerGroup,MarkerClusterGroup
LayerGroup methods
- Since:
- 2020-03-23
- Version:
- 1.0
- Author:
- Gabor Kokeny Email: kokeny19@gmail.com
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidAdds the given layer to the group.default voidRemoves all the layers from the group.booleanReturns true if the given internal ID is currently added to the group.booleanReturns true if the given layer is currently added to the group.default voidremoveLayer(String layerId) Removes the layer with the given internal ID from the group.default voidremoveLayer(Layer layer) Removes the given layer from the group.Methods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.map.functions.ExecutableFunctions
call, call, executeJs, executeJsMethods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.Identifiable
getUuid
-
Method Details
-
addLayer
Adds the given layer to the group.- Parameters:
layer- the layer to be added to this layer group
-
removeLayer
Removes the given layer from the group.- Parameters:
layer- the layer to be removed from this layer group
-
removeLayer
Removes the layer with the given internal ID from the group.- Parameters:
layerId- the internal ID of the layer should remove
-
hasLayer
Returns true if the given layer is currently added to the group.- Parameters:
layer- layer to be check- Returns:
- true if the given layer is currently added to the group.
-
hasLayer
Returns true if the given internal ID is currently added to the group.- Parameters:
layerId- layer to be check- Returns:
- true if the given internal ID is currently added to the group.
-
clearLayers
default void clearLayers()Removes all the layers from the group.
-