Interface Source.HasAttributions
- All Known Subinterfaces:
Source.HasSourceOptions
- All Known Implementing Classes:
DataVectorSource
,ImageStaticSource
,ImageWmsSource
,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 Summary
Modifier and TypeMethodDescriptionvoid
setAttributions
(List<String> attributions) Sets the attributions of the source.
-
Method Details
-
getAttributions
- Returns:
- the attributions of the source or
null
if not set
-
setAttributions
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
-