Fix initial state of the Modify interaction
Features that are in the features collection need to be added to the R-Tree.
This commit is contained in:
1 parent
8545aa83a9
commit
c33a3372d9
1 file changed
+1
@@ -110,6 +110,7 @@ ol.interaction.Modify = function(options) {
|
||||
*/
|
||||
this.features_ = options.features;
|
||||
|
||||
this.features_.forEach(this.addFeature_, this);
|
||||
goog.events.listen(this.features_, ol.CollectionEventType.ADD,
|
||||
this.addFeature_, false, this);
|
||||
goog.events.listen(this.features_, ol.CollectionEventType.REMOVE,
|
||||
|
||||
Reference in new issue
Block a user