Skip to main content

@mapgear/geoapps > BaseLayers > on

BaseLayers.on() method

Warning: This API is now obsolete.

Eventhandler with on is deprecated, use the dedicated event-properties

Bind to an event (legacy purposes)

Signature:
on(event: "init" | "loaded" | "activate" | "added" | "removed", eventHandler: (eventAgrs: GAEventArgs) => void): void;

Parameters

ParameterTypeDescription
event"init" | "loaded" | "activate" | "added" | "removed"Supported events are: init, loaded, activate, added, removed
eventHandler(eventAgrs: GAEventArgs) => voidEvent Handler
Returns:

void