Module: ol/interaction/DragAndDrop

ol/interaction/DragAndDrop


Classes

DragAndDropEvent
DragAndDrop

Type Definitions

Options{Object}

属性:
Name Type Description
formatConstructors Array.<(Class.<module:ol/format/要素~要素Format>|module:ol/format/要素~要素Format)> | undefined

格式构造函数(和/或使用选项预构造的格式)。

source VectorSource | undefined

要添加要素的可选矢量数据源。如果提供了数据源,所有现有要素将被移除,新要素在拖放到目标时将被添加。如果您想向矢量数据源添加要素而不移除现有要素(仅追加),请监听 "addfeatures" 事件,而不是提供 source 选项。

projection ProjectionLike | undefined

目标投影。默认使用地图视图的投影。

target HTMLElement | undefined

用作拖放目标的元素,默认为视口元素。