Instance Method

removeEventListener

Removes an event listener.

Declaration

void removeEventListener(String type, function listener, optional Object thisObject);

Parameters

type

The event type of interest (e.g., "select").

listener

The callback function to remove.

thisObject

An object to be set as the this keyword on the listener function.

Return Value

This method does not return a value.

Discussion

Removes listener as a callback for an event of type type. See Handling Map Events for a list of event types.

See Also

Handling Map Events

Handling Map Events

Handle events triggered by user interactions and the framework.

addEventListener

Adds an event listener to handle events triggered by user interactions and the framework.