Rename updatefeature event to changefeature
This commit is contained in:
@@ -31,10 +31,10 @@ ol.source.VectorEventType = {
|
||||
|
||||
/**
|
||||
* Triggered when a feature is updated.
|
||||
* @event ol.source.VectorEvent#updatefeature
|
||||
* @event ol.source.VectorEvent#changefeature
|
||||
* @api
|
||||
*/
|
||||
UPDATEFEATURE: 'updatefeature',
|
||||
CHANGEFEATURE: 'changefeature',
|
||||
|
||||
/**
|
||||
* Triggered when a feature is removed from the source.
|
||||
@@ -446,7 +446,7 @@ ol.source.Vector.prototype.handleFeatureChange_ = function(event) {
|
||||
}
|
||||
this.changed();
|
||||
this.dispatchEvent(new ol.source.VectorEvent(
|
||||
ol.source.VectorEventType.UPDATEFEATURE, feature));
|
||||
ol.source.VectorEventType.CHANGEFEATURE, feature));
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user