Attribution

open external class Attribution(options: Attribution.AttributionOptions = definedExternally) : Control<Attribution.AttributionOptions>

Constructors

Link copied to clipboard
constructor(options: Attribution.AttributionOptions = definedExternally)

Types

Link copied to clipboard

Properties

Link copied to clipboard
open val onAdd: (map: LeafletMap) -> <Error class: unknown class>?

Should return the container DOM element for the control and add listeners on relevant map events. Called on addTo

Link copied to clipboard
open val onRemove: (map: LeafletMap) -> Unit?

Optional method. Should contain all clean up code that removes the listeners previously added in onAdd. Called on remove.

Functions

Link copied to clipboard

Adds an attribution text (e.g. Vector data &copy; Mapbox).

Link copied to clipboard

Adds the control to the given map.

Link copied to clipboard
open fun getContainer(): <Error class: unknown class>?

Returns the HTMLElement that contains the control.

Link copied to clipboard

Returns the position of the control.

Link copied to clipboard

Removes the control from the map it is currently active on.

Link copied to clipboard

Removes an attribution text.

Link copied to clipboard

Sets the position of the control.

Link copied to clipboard
open fun setPrefix(prefix: Boolean): Attribution
open fun setPrefix(prefix: String): Attribution

The HTML text shown before the attributions. Pass false to disable.