Class: DragPanHandler

.Handler. DragPanHandler

继承于GeoGlobe.Handler 平移拖拽,为二维地图提供平移拖拽功能。

new DragPanHandler()

Source:
View2D/handler/DragPanHandler.js

Members


map :GeoGlobe.Map

地图对象。
Type:
Default Value:
  • null
Source:
View2D/handler/DragPanHandler.js

Methods


disable()

不能交互。
Source:
View2D/handler/DragPanHandler.js

enable()

能交互。
Source:
View2D/handler/DragPanHandler.js

initialize(options)

GeoGlobe.Handler构造函数。
Parameters:
Name Type Description
options Object Handler.DragPanHandler相关选项设置。
Source:
View2D/handler/DragPanHandler.js

isActivate()

添加控件。
Source:
View2D/handler/DragPanHandler.js
Returns:
active - 是否激活。
Type
Boolean

isEnabled()

是否交互。
Source:
View2D/handler/DragPanHandler.js
Returns:
able - 是否交互。
Type
Boolean