Merge pull request #1875 from ahocevar/modify-performance

Do not update RTree while dragging vertices
This commit is contained in:
Andreas Hocevar
2014-03-20 10:43:47 +01:00

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);
}
};