Class
The attribution control adds attribution information for ArcGIS Data services in a MapLibre GL JS Map.
Constructors
constructor
Class ConstructorAttributionControl(options: IAttributionControlOptions): AttributionControlConstructor 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
AttributionControlProperties
| Property | Type |
|---|---|
_attribHTMLinherited | string |
_compactinherited | boolean |
_compactButtoninherited | HTMLElement |
_containerinherited | HTMLElement |
_editLinkinherited | HTMLAnchorElement |
_innerContainerinherited | HTMLElement |
_mapinherited | Map$1 |
_toggleAttributioninherited | () => void |
_updateCompactinherited | () => void |
_updateCompactMinimizeinherited | () => void |
_updateDatainherited | (e: MapDataEvent) => void |
optionsinherited | AttributionControlOptions |
styleIdinherited | string |
styleOwnerinherited | string |
_attribHTML
_attribHTML: string_compact
_compact: boolean_compactButton
_compactButton: HTMLElement_container
_container: HTMLElement_editLink
_editLink: HTMLAnchorElement_innerContainer
_innerContainer: HTMLElement_toggleAttribution
_toggleAttribution: () => voidType declaration
function(): voidReturns
void_updateCompact
_updateCompact: () => voidType declaration
function(): voidReturns
void_updateCompactMinimize
_updateCompactMinimize: () => voidType declaration
function(): voidReturns
void_updateData
_updateData: (e: MapDataEvent) => voidType declaration
function(e: MapDataEvent): voidParameters
| Parameter | Type |
|---|---|
e | MapDataEvent |
Returns
voidoptions
options: AttributionControlOptionsAccessors
| 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"): voidParameters
| Parameter | Type |
|---|---|
element | HTMLElement |
title | "ToggleAttribution" | "MapFeedback" |
Returns
void_updateAttributions
_updateAttributions(): voidReturns
voidgetDefaultPosition
getDefaultPosition(): ControlPositionOptionally 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
ControlPositiona control position, one of the values valid in addControl.