Skip to content

Both copy text to your clipboard — Build with AI copies a setup prompt to paste into Claude Code, Cursor, Codex or Copilot; Copy page as Markdown copies this page to paste into a chat. How it works

MapWheelEvent ​

Defined in: src/ui/events.ts:632

MapWheelEvent is the event type for the wheel map event.

Extends ​

Accessors ​

defaultPrevented ​

Get Signature ​

get defaultPrevented(): boolean

Defined in: src/ui/events.ts:660

true if preventDefault has been called.

Returns ​

boolean

Constructors ​

Constructor ​

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

Defined in: src/ui/events.ts:667

Parameters ​

ParameterType
typestring
mapMap
originalEventWheelEvent

Returns ​

MapWheelEvent

Overrides ​

Event.constructor

Methods ​

preventDefault() ​

preventDefault(): void

Defined in: src/ui/events.ts:653

Prevents subsequent default processing of the event by the map.

Calling this method will prevent the behavior of ScrollZoomHandler.

Returns ​

void

Properties ​

originalEvent ​

originalEvent: WheelEvent

Defined in: src/ui/events.ts:646

The DOM event which caused the map event.


target ​

target: Map

Defined in: src/ui/events.ts:641

The Map object that fired the event.


type ​

type: "wheel"

Defined in: src/ui/events.ts:636

The event type.

Overrides ​

Event.type