From c33a3372d9d322d7a4c8293223ed19e79c84771b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Fri, 28 Mar 2014 16:03:34 +0100 Subject: [PATCH] Fix initial state of the Modify interaction Features that are in the features collection need to be added to the R-Tree. --- src/ol/interaction/modifyinteraction.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ol/interaction/modifyinteraction.js b/src/ol/interaction/modifyinteraction.js index 7b5f003351..d23e929186 100644 --- a/src/ol/interaction/modifyinteraction.js +++ b/src/ol/interaction/modifyinteraction.js @@ -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,