Interface Source.HasAttributions

All Known Subinterfaces:
Source.HasSourceOptions
All Known Implementing Classes:
AbstractDataVectorSource, ClusterSource, DataVectorSource, HeatmapDataVectorSource, ImageStaticSource, ImageWmsSource, NoOpClusterSource, NoOpImageStaticSource, NoOpImageWmsSource, NoOpOsmSource, NoOpTileWmsSource, NoOpVectorSource, NoOpXyzSource, OsmSource, TileWmsSource, VectorSource, XyzSource
Enclosing class:
Source

public static interface Source.HasAttributions
Interface to be implemented by sources that should provide attributions management.

For more details see: Source docs

  • Method Details

    • getAttributions

      List<String> getAttributions()
      Returns:
      the attributions of the source or null if not set
    • setAttributions

      void setAttributions(List<String> attributions)
      Sets the attributions of the source.

      For instance:

       setAttributions(List.of("©<a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\">
       OpenStreetMap</a>", "contributors"));
       
      For more details see: setAttributions docs
      Parameters:
      attributions - info about copyrights and licences