Merge pull request #1875 from ahocevar/modify-performance

Do not update RTree while dragging vertices
This commit is contained in:
Andreas Hocevar committed 2014-03-20 10:43:47 +01:00
commit 23e1e6e0f4
1 file changed
-3
-3
View File
@@ -448,10 +448,7 @@ ol.interaction.Modify.prototype.handlePointerDrag = function(evt) {
}
geometry.setCoordinates(coordinates);
var newBounds = ol.extent.boundingExtent(segment);
this.createOrUpdateVertexFeature_(vertex);
this.rBush_.remove(segmentData);
this.rBush_.insert(newBounds, segmentData);
}
};