Interface LayerGroupFunctions

All Superinterfaces:
ExecutableFunctions, Identifiable
All Known Implementing Classes:
FeatureGroup, LayerGroup, MarkerClusterGroup

public interface LayerGroupFunctions extends ExecutableFunctions
LayerGroup methods
Since:
2020-03-23
Version:
1.0
Author:
Gabor Kokeny Email: kokeny19@gmail.com
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    addLayer(Layer layer)
    Adds the given layer to the group.
    default void
    Removes all the layers from the group.
    boolean
    hasLayer(String layerId)
    Returns true if the given internal ID is currently added to the group.
    boolean
    hasLayer(Layer layer)
    Returns true if the given layer is currently added to the group.
    default void
    Removes the layer with the given internal ID from the group.
    default void
    Removes the given layer from the group.

    Methods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.map.functions.ExecutableFunctions

    call, call, executeJs, executeJs

    Methods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.Identifiable

    getUuid
  • Method Details

    • addLayer

      default void addLayer(Layer layer)
      Adds the given layer to the group.
      Parameters:
      layer - the layer to be added to this layer group
    • removeLayer

      default void removeLayer(Layer layer)
      Removes the given layer from the group.
      Parameters:
      layer - the layer to be removed from this layer group
    • removeLayer

      default void removeLayer(String layerId)
      Removes the layer with the given internal ID from the group.
      Parameters:
      layerId - the internal ID of the layer should remove
    • hasLayer

      boolean hasLayer(Layer layer)
      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

      boolean hasLayer(String layerId)
      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.