Class BaseVectorLayer<S extends AbstractVectorSource>

All Implemented Interfaces:
HasBaseLayerOptions, Serializable
Direct Known Subclasses:
BaseHeatmapLayer, NoOpVectorLayer, VectorLayer

public abstract class BaseVectorLayer<S extends AbstractVectorSource> extends Layer<S>
Base class for layers with vector data that is rendered client-side.

For more details see: BaseVectorLayer docs

See Also:
  • Field Details

  • Constructor Details

    • BaseVectorLayer

      public BaseVectorLayer()
  • Method Details

    • getRenderBuffer

      protected Double getRenderBuffer()
    • setRenderBuffer

      protected void setRenderBuffer(Double renderBuffer)
    • getDeclutter

      protected Boolean getDeclutter()
    • setDeclutter

      protected void setDeclutter(Boolean declutter)
    • getBackground

      protected String getBackground()
    • setBackground

      protected void setBackground(String color)
    • getUpdateWhileAnimating

      protected Boolean getUpdateWhileAnimating()
    • setUpdateWhileAnimating

      protected void setUpdateWhileAnimating(Boolean updateWhileAnimating)
    • getUpdateWhileInteracting

      protected Boolean getUpdateWhileInteracting()
    • setUpdateWhileInteracting

      protected void setUpdateWhileInteracting(Boolean updateWhileInteracting)
    • getStyles

      protected List<Style> getStyles()
      Returns:
      layer's styles or empty list
    • addStyles

      protected void addStyles(Style... styles)
      Adds styles that should be merged with default. Layer's styles are applied for all added features, except features with own style.
      Parameters:
      styles - styles to add
    • removeStyles

      protected void removeStyles(Style... styles)
      Removes provided styles from layer.
      Parameters:
      styles - styles to remove
    • removeAllStyles

      protected void removeAllStyles()
      Clears list of styles.
    • getOptions

      protected BaseVectorLayerOptions getOptions()
      Specified by:
      getOptions in class Layer<S extends AbstractVectorSource>