Skip to content

MapWheelEvent

MapWheelEvent is the event type for the wheel map event.

Extends

Accessors

defaultPrevented

get defaultPrevented(): boolean

true if preventDefault has been called.

Returns

boolean

Source

src/ui/events.ts:646

Constructors

new MapWheelEvent()

new MapWheelEvent(type: string, map: Map, originalEvent: WheelEvent): MapWheelEvent

Parameters

Parameter Type
type string
map Map
originalEvent WheelEvent

Returns

MapWheelEvent

Overrides

Event.constructor

Source

src/ui/events.ts:653

Methods

preventDefault()

preventDefault(): void

Prevents subsequent default processing of the event by the map.

Calling this method will prevent the behavior of ScrollZoomHandler.

Returns

void

Source

src/ui/events.ts:639

Properties

originalEvent

originalEvent: WheelEvent

The DOM event which caused the map event.

Source

src/ui/events.ts:632


target

target: Map

The Map object that fired the event.

Source

src/ui/events.ts:627


type

type: "wheel"

The event type.

Overrides

Event.type

Source

src/ui/events.ts:622