Interface EventedEvent<Type, Target>

Not all the events from Mapbox implement the EventedEvent interface. This interface exists so that such events can be extended so that the event argument in the listener has the missing properties.

interface EventedEvent<Type, Target> {
    target: Target;
    type: Type;
}

Type Parameters

  • Type extends string

    The event type or name.

  • Target = unknown

    The type of the Mapbox control that raised the event.

Properties

Properties

target: Target

The Mapbox control that raised the event.

type: Type

The event name.