MapWheelEvent
Defined in: src/ui/events.ts:631
MapWheelEvent
is the event type for the wheel
map event.
Extends
Accessors
defaultPrevented
Get Signature
get defaultPrevented():
boolean
Defined in: src/ui/events.ts:659
true
if preventDefault
has been called.
Returns
boolean
Constructors
new MapWheelEvent()
new MapWheelEvent(
type
:string
,map
:Map
,originalEvent
:WheelEvent
):MapWheelEvent
Defined in: src/ui/events.ts:666
Parameters
Parameter | Type |
---|---|
type |
string |
map |
Map |
originalEvent |
WheelEvent |
Returns
Overrides
Event.constructor
Methods
preventDefault()
preventDefault():
void
Defined in: src/ui/events.ts:652
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:645
The DOM event which caused the map event.
target
target:
Map
Defined in: src/ui/events.ts:640
The Map
object that fired the event.
type
type:
"wheel"
Defined in: src/ui/events.ts:635
The event type.
Overrides
Event.type