Class: VectorSourceEvent

ol/source/Vector.VectorSourceEvent


VectorSource 实例触发的事件是此类型的实例。

Extends

Members

feature{要素Type} {undefined}

ADDFEATUREREMOVEFEATURE 事件的添加或移除的要素,其他情况下为 undefined

features{Array.<要素Type>} {undefined}

FEATURESLOADED 事件的已加载要素,其他情况下为 undefined

target{Object}

事件目标。

type{string}

事件类型。

Methods

阻止默认行为。这意味着不会触发模拟的 clicksingleclickdoubleclick 事件。

stopPropagation() inherited

停止事件传播。

Events

当向数据源添加要素时触发。

通用更改事件。当修订计数器增加时触发。

当更新要素时触发。

当调用数据源的 clear 方法时触发。

通用错误事件。 当发生错误时触发。

当features finishes loading.

要素加载出错时触发。

当features starts loading.

当从数据源移除要素时触发。 See source.clear() for exceptions.