Use ol.extent.createOrUpdateFromCoordinate

Instead of ol.extent.boundingExtent
This commit is contained in:
Frederic Junod
2015-02-04 14:10:55 +01:00
parent 2d3e5d2bac
commit f6b47f086b

View File

@@ -1189,7 +1189,7 @@ ol.render.webgl.ReplayGroup.prototype.forEachFeatureAtCoordinate = function(
// build an extent around the coordinate, so that only features that
// intersect this extent are checked
hitExtent = ol.extent.buffer(
ol.extent.boundingExtent([coordinate]),
ol.extent.createOrUpdateFromCoordinate(coordinate),
resolution * this.renderBuffer_);
}