Class AttributionControl
java.lang.Object
org.vaadin.addons.componentfactory.leaflet.LeafletObject
org.vaadin.addons.componentfactory.leaflet.controls.LeafletControl
org.vaadin.addons.componentfactory.leaflet.controls.AttributionControl
- All Implemented Interfaces:
Serializable,Identifiable,ExecutableFunctions
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.vaadin.addons.componentfactory.leaflet.controls.LeafletControl
LeafletControl.ControlPosition -
Field Summary
Fields inherited from class org.vaadin.addons.componentfactory.leaflet.controls.LeafletControl
leafletMap -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.vaadin.addons.componentfactory.leaflet.controls.LeafletControl
addTo, getLeafletType, getPosition, remove, setPositionMethods inherited from class org.vaadin.addons.componentfactory.leaflet.LeafletObject
call, configureObjectMapper, executeJs, getConstructorArgumentNames, getJson, getParent, getUuid, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.map.functions.ExecutableFunctions
call, executeJs
-
Constructor Details
-
AttributionControl
public AttributionControl()Creates a new attribution control.
-
-
Method Details
-
getPrefix
Gets the HTML text shown before the attributions.- Returns:
- the prefix
-
setPrefix
The HTML text shown before the attributions. Pass false to disable.- Parameters:
prefix- the prefix to set
-