Merge pull request #3205 from fredj/use-ol.extent.createOrUpdateFromCoordinate
Use ol.extent.createOrUpdateFromCoordinate
This commit is contained in:
@@ -1189,7 +1189,7 @@ ol.render.webgl.ReplayGroup.prototype.forEachFeatureAtCoordinate = function(
|
|||||||
// build an extent around the coordinate, so that only features that
|
// build an extent around the coordinate, so that only features that
|
||||||
// intersect this extent are checked
|
// intersect this extent are checked
|
||||||
hitExtent = ol.extent.buffer(
|
hitExtent = ol.extent.buffer(
|
||||||
ol.extent.boundingExtent([coordinate]),
|
ol.extent.createOrUpdateFromCoordinate(coordinate),
|
||||||
resolution * this.renderBuffer_);
|
resolution * this.renderBuffer_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user