Class: AttributionEsri

AttributionEsri

RSUIBase is an abstract class providing a base structure for UI components. It manages the creation and manipulation of a container element, visibility, and event handling through an EventEmitter.

new AttributionEsri()

Layers/GoBaseMapLayer/Esri/attributionsEsri/index.ts, line 10

Constructs a new RSUIBase instance and initializes the container.

Methods

__addContainerToMap(){void}

Layers/GoBaseMapLayer/Esri/attributionsEsri/index.ts, line 176

This method adds the container of the UI to the current map.

Returns:
Type Description
void

emit(eventName, args)

Layers/GoBaseMapLayer/Esri/attributionsEsri/index.ts, line 150

Emits an event with the provided arguments.

Name Type Description
eventName string

The name of the event.

args any repeatable

Arguments to pass to the event handlers.

getContainer(){HTMLDivElement}

Layers/GoBaseMapLayer/Esri/attributionsEsri/index.ts, line 114

Retrieves the container element.

Returns:
Type Description
HTMLDivElement The container element.

getEventHandlers(eventName){Array.<function()>}

Layers/GoBaseMapLayer/Esri/attributionsEsri/index.ts, line 168

Retrieves all event handlers for a given event.

Name Type Description
eventName string

The name of the event.

Returns:
Type Description
Array.<function()> An array of event handlers.

hasEvent(eventName){boolean}

Layers/GoBaseMapLayer/Esri/attributionsEsri/index.ts, line 159

Checks if an event has any registered handlers.

Name Type Description
eventName string

The name of the event.

Returns:
Type Description
boolean True if the event has handlers, otherwise false.

off(eventName, callback)

Layers/GoBaseMapLayer/Esri/attributionsEsri/index.ts, line 141

Removes an event handler. If no callback is provided, removes all handlers for the event.

Name Type Description
eventName string optional

The name of the event.

callback function optional

The callback function to remove.

on(eventName, callback)

Layers/GoBaseMapLayer/Esri/attributionsEsri/index.ts, line 123

Registers an event handler that will be invoked every time the event is emitted.

Name Type Description
eventName string

The name of the event.

callback function

The callback function to handle the event.

once(eventName, callback)

Layers/GoBaseMapLayer/Esri/attributionsEsri/index.ts, line 132

Registers a one-time event handler that will be invoked only the next time the event is emitted.

Name Type Description
eventName string

The name of the event.

callback function

The callback function to handle the event.

setVisibility(visible)

Layers/GoBaseMapLayer/Esri/attributionsEsri/index.ts, line 105

Sets the visibility of the UI component.

Name Type Description
visible boolean

True to show the component, false to hide it.