---
title: MapWheelEvent
source: https://vjmap.com/doc/MapWheelEvent.html
---

# MapWheelEvent
**扩展对象**


`MapWheelEvent`是其他类用来生成特定类型的鼠标事件（例如“轮”）的类。有关可用事件的完整列表，请参阅``Map`events`。

### Parameters
- `type` **`string`**
- `map` **`地图`**
- `originalEvent` **`轮事件 `**

### Examples
```
// Example of a MapWheelEvent of type "wheel"
{
  originalEvent: WheelEvent {...},
	 target: Map {...},
	 type: "wheel"
}
```

### type
始发事件的类型。有关可用事件的完整列表，请参阅``Map`events`。

类型： `"wheel"`

### target
`Map`触发事件的对象。

类型：`地图`

### originalEvent
引发地图事件的 DOM 事件。

类型：`WheelEvent `

### preventDefault
阻止地图对事件的后续默认处理。

调用此方法将阻止[ScrollZoomHandler][187]的行为。
