TwoFingersTouchPitchHandler
定义于: src/ui/handler/two_fingers_touch.ts:253
TwoFingersTouchPitchHandler
允许用户通过双指上下拖动来倾斜地图。
继承
- TwoFingersTouchHandler
方法
disable()
disable():
void
定义于: src/ui/handler/two_fingers_touch.ts:108
禁用"拖动倾斜"交互。
返回
void
示例
map.touchPitch.disable();
继承自
TwoFingersTouchHandler.disable
enable()
enable(
options?
:boolean
| AroundCenterOptions):void
定义于: src/ui/handler/two_fingers_touch.ts:95
启用"拖动倾斜"交互。
参数
参数 | 类型 |
---|---|
options? | boolean | AroundCenterOptions |
返回
void
示例
map.touchPitch.enable();
继承自
TwoFingersTouchHandler.enable
isActive()
isActive():
boolean
定义于: src/ui/handler/two_fingers_touch.ts:127
返回一个布尔值,指示"拖动倾斜"交互是否处于活动状态,即当前是否正在使用。
返回
boolean
如果"拖动倾斜"交互处于活动状态,则为true
。
继承自
TwoFingersTouchHandler.isActive
isEnabled()
isEnabled():
boolean
定义于: src/ui/handler/two_fingers_touch.ts:118
返回一个布尔值,指示"拖动倾斜"交互是否已启用。
返回
boolean
如果"拖动倾斜"交互已启用,则为true
。
继承自
TwoFingersTouchHandler.isEnabled
构造函数
构造函数
new TwoFingersTouchPitchHandler(map: Map): TwoFingersTouchPitchHandler
定义于: src/ui/handler/two_fingers_touch.ts:323
参数
参数 | 类型 | 描述 |
---|---|---|
map | Map | 所连接的Map实例 |
返回
TwoFingersTouchPitchHandler