Shared module for vector event type enum
This commit is contained in:
@@ -9,10 +9,11 @@ goog.require('ol.coordinate');
|
||||
goog.require('ol.events');
|
||||
goog.require('ol.events.EventType');
|
||||
goog.require('ol.extent');
|
||||
goog.require('ol.interaction.Pointer');
|
||||
goog.require('ol.functions');
|
||||
goog.require('ol.interaction.Pointer');
|
||||
goog.require('ol.obj');
|
||||
goog.require('ol.source.Vector');
|
||||
goog.require('ol.source.VectorEventType');
|
||||
goog.require('ol.structs.RBush');
|
||||
|
||||
|
||||
@@ -343,9 +344,9 @@ ol.interaction.Snap.prototype.setMap = function(map) {
|
||||
);
|
||||
} else if (this.source_) {
|
||||
keys.push(
|
||||
ol.events.listen(this.source_, ol.source.Vector.EventType.ADDFEATURE,
|
||||
ol.events.listen(this.source_, ol.source.VectorEventType.ADDFEATURE,
|
||||
this.handleFeatureAdd_, this),
|
||||
ol.events.listen(this.source_, ol.source.Vector.EventType.REMOVEFEATURE,
|
||||
ol.events.listen(this.source_, ol.source.VectorEventType.REMOVEFEATURE,
|
||||
this.handleFeatureRemove_, this)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user