Class MapAttributions

java.lang.Object
com.luciad.maps.MapAttributions
All Implemented Interfaces:
AutoCloseable

public final class MapAttributions extends Object implements AutoCloseable
A class from which the attributions of a map can be retrieved.
Since:
2024.0
  • Method Details

    • finalize

      protected void finalize()
      Overrides:
      finalize in class Object
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getAllAttributions

      @NotNull public List<@NotNull DataAttribution> getAllAttributions()
      Returns the attributions from all visible layers that provide attribution.
      Returns:
      the attributions from all visible layers that provide attribution.
    • getAttribution

      @Nullable public DataAttribution getAttribution(long layerId)
      Returns the attribution from a layer.

      Returns null if the layer is not on this map, is invisible, or provides no attribution.

      Returns:
      the attribution of the layer.
    • getAttributionLayerIds

      @NotNull public List<Long> getAttributionLayerIds()
      Returns the IDs of all visible layers on this map that provide attribution.
      Returns:
      the layer IDs.