Class AttributionControl

All Implemented Interfaces:
Serializable, Identifiable, ExecutableFunctions

public class AttributionControl extends LeafletControl
The attribution control allows you to display attribution data in a small text box on a map. It is put on the map by default unless you set its attributionControl option to false, and it fetches attribution texts from layers with the getAttribution method automatically. Extends Control.
Since:
2020-03-07
Version:
1.0
Author:
Gabor Kokeny Email: kokeny19@gmail.com
See Also:
  • Constructor Details

    • AttributionControl

      public AttributionControl()
      Creates a new attribution control.
  • Method Details

    • getPrefix

      public String getPrefix()
      Gets the HTML text shown before the attributions.
      Returns:
      the prefix
    • setPrefix

      public void setPrefix(String prefix)
      The HTML text shown before the attributions. Pass false to disable.
      Parameters:
      prefix - the prefix to set