Module: ol/interaction/Extent

ol/interaction/Extent


Classes

ExtentEvent
Extent

Type Definitions

Options{Object}

属性:
Name Type Description
condition Condition | undefined

一个函数,接受 MapBrowserEvent 并返回一个 布尔值以指示是否应处理该事件。 默认为 always

createCondition Condition | null
(defaults to null)

一个函数,接受 MapBrowserEvent 并返回一个 布尔值以指示是否应处理该事件以创建新范围。 如果为 nullcondition 也将用作 createCondition

drag boolean
(defaults to false)

范围可以拖动。

extent Extent | undefined

初始范围。默认无初始范围。

boxStyle StyleLike | undefined

绘制的范围框样式。默认为 Style 中记录的 Polygon 编辑样式

pixelTolerance number
(defaults to 10)

用于判断指针是否足够接近线段或顶点以进行编辑的像素容差。

pointerStyle StyleLike | undefined

用于绘制范围的光标样式。默认为 Style 中记录的 Point 编辑样式

wrapX boolean
(defaults to false)

是否在 X 方向上跨多个地图换行绘制的范围?仅影响视觉效果,不影响功能。

PointerHandler()