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:
@@ -110,6 +110,7 @@ ol.interaction.Modify = function(options) {
|
|||||||
*/
|
*/
|
||||||
this.features_ = options.features;
|
this.features_ = options.features;
|
||||||
|
|
||||||
|
this.features_.forEach(this.addFeature_, this);
|
||||||
goog.events.listen(this.features_, ol.CollectionEventType.ADD,
|
goog.events.listen(this.features_, ol.CollectionEventType.ADD,
|
||||||
this.addFeature_, false, this);
|
this.addFeature_, false, this);
|
||||||
goog.events.listen(this.features_, ol.CollectionEventType.REMOVE,
|
goog.events.listen(this.features_, ol.CollectionEventType.REMOVE,
|
||||||
|
|||||||
Reference in New Issue
Block a user