Interface BaseVectorLayer.HasRenderBuffer

All Known Subinterfaces:
BaseVectorLayer.HasBaseVectorLayerOptions
All Known Implementing Classes:
BaseHeatmapLayerOptions, BaseVectorLayerOptions, HeatmapLayerOptions, NoOpVectorLayer, VectorLayer, VectorLayerOptions
Enclosing class:
BaseVectorLayer<S extends AbstractVectorSource>

public static interface BaseVectorLayer.HasRenderBuffer
Interface to be implemented by layers that should provide "render-buffer" attribute management.

For more details see: BaseVectorLayer docs

  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    setRenderBuffer(Double renderBuffer)
    Sets the buffer in pixels around the viewport extent used by the renderer when getting features from the vector source for the rendering or hit-detection.
  • Method Details

    • getRenderBuffer

      Double getRenderBuffer()
      Returns:
      the render buffer in pixels, null value means that default value is used: 100
    • setRenderBuffer

      void setRenderBuffer(Double renderBuffer)
      Sets the buffer in pixels around the viewport extent used by the renderer when getting features from the vector source for the rendering or hit-detection. The hit detection only checks features that are within a certain distance of the given position. For large icons, the actual geometry of a feature might be too far away and is not considered. Recommended value: the size of the largest symbol, line width or label.

      Note, render buffer is set only at creation time and cannot be changed at runtime.

      For more details see: BaseVectorLayer docs

      Parameters:
      renderBuffer - the buffer in pixels