Interface AbstractVectorSource.HasOverlaps

All Known Subinterfaces:
AbstractVectorSource.HasVectorSourceOptions
All Known Implementing Classes:
DataVectorSource, NoOpVectorSource, VectorSource
Enclosing class:
AbstractVectorSource

public static interface AbstractVectorSource.HasOverlaps
Interface to be implemented by sources that should provide overlaps attribute management.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    setOverlaps(Boolean overlaps)
    Sets whether source may have overlapping geometries.
  • Method Details

    • getOverlaps

      Boolean getOverlaps()
      Returns:
      overlaps value or null if not set
    • setOverlaps

      void setOverlaps(Boolean overlaps)
      Sets whether source may have overlapping geometries. The default value is true.

      Setting this to false (e.g. for sources with polygons that represent administrative boundaries) allows the renderer to optimise fill and stroke operations.

      Note, overlaps attribute is set only at creation time and cannot be changed at runtime.

      Parameters:
      overlaps - overlaps option