Interface BaseVectorLayer.HasBackground

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.HasBackground
Interface to be implemented by layers that should provide "background" attribute management.

For more details see: BaseVectorLayer docs

  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    Sets the background color for the layer.
  • Method Details

    • getBackground

      String getBackground()
      Returns:
      background color for the layer or null if not set
    • setBackground

      void setBackground(String color)
      Sets the background color for the layer. If not specified, no background will be rendered.

      Note, background color is set only at creation time and cannot be changed at runtime.

      For more details see: BaseVectorLayer docs

      Parameters:
      color - color to set