Class
The attribution control adds attribution information for ArcGIS Data services in a MapLibre GL JS Map.
Constructors
constructor
Class ConstructorAttributionControl(options: IAttributionControlOptions): AttributionControl
Constructor for AttributionControl.
const attributionControl = new AttributionControl({
customAttribution: ['Custom Attribution 1', 'Custom Attribution 2'],
closed: false,
compact: true,
});
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
options | IAttributionControlOptions | {} | Options for the attribution control. |
Returns
AttributionControl
Properties
Property | Type |
---|---|
_attribHTML inherited | string |
_compact inherited | boolean |
_compactButton inherited | HTMLElement |
_container inherited | HTMLElement |
_editLink inherited | HTMLAnchorElement |
_innerContainer inherited | HTMLElement |
_map inherited | Map$1 |
_toggleAttribution inherited | () => void |
_updateCompact inherited | () => void |
_updateCompactMinimize inherited | () => void |
_updateData inherited | (e: MapDataEvent) => void |
options inherited | AttributionControlOptions |
styleId inherited | string |
styleOwner inherited | string |
_attribHTML
_attribHTML: string
_compact
_compact: boolean
_compactButton
_compactButton: HTMLElement
_container
_container: HTMLElement
_editLink
_editLink: HTMLAnchorElement
_innerContainer
_innerContainer: HTMLElement
_toggleAttribution
_toggleAttribution: () => void
Type declaration
function(): void
Returns
void
_updateCompact
_updateCompact: () => void
Type declaration
function(): void
Returns
void
_updateCompactMinimize
_updateCompactMinimize: () => void
Type declaration
function(): void
Returns
void
_updateData
_updateData: (e: MapDataEvent) => void
Type declaration
function(e: MapDataEvent): void
Parameters
Parameter | Type |
---|---|
e | MapDataEvent |
Returns
void
options
options: AttributionControlOptions
Accessors
Accessor | Returns |
---|---|
esriAttribution() | AttributionControlOptions |
Methods
Method | Returns | Notes |
---|---|---|
_setElementTitle(element, title) inherited | void | |
_updateAttributions() inherited | void | |
getDefaultPosition() inherited | ControlPosition | Optionally provide a default position for this control. If this method
is implemented and Map.addControl is called without the |
onRemove() inherited | void | {@inheritDoc IControl.onRemove} |
_setElementTitle
_setElementTitle(element: HTMLElement, title: "ToggleAttribution" | "MapFeedback"): void
Parameters
Parameter | Type |
---|---|
element | HTMLElement |
title | "ToggleAttribution" | "MapFeedback" |
Returns
void
_updateAttributions
_updateAttributions(): void
Returns
void
getDefaultPosition
getDefaultPosition(): ControlPosition
Optionally provide a default position for this control. If this method
is implemented and Map.addControl is called without the position
parameter, the value returned by getDefaultPosition will be used as the
control's position.
Returns
ControlPosition
a control position, one of the values valid in addControl.