From c1857efd81933a2cc6538429242a64dfce495add Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Wed, 11 Dec 2019 22:21:15 +0100 Subject: [PATCH] Use render feature compatible extent check --- src/ol/source/VectorTile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/source/VectorTile.js b/src/ol/source/VectorTile.js index c82d5951e4..bd430a81d4 100644 --- a/src/ol/source/VectorTile.js +++ b/src/ol/source/VectorTile.js @@ -204,7 +204,7 @@ class VectorTile extends UrlTile { for (let j = 0, jj = tileFeatures.length; j < jj; ++j) { const candidate = tileFeatures[j]; const geometry = candidate.getGeometry(); - if (geometry.intersectsExtent(extent)) { + if (intersects(extent, geometry.getExtent())) { features.push(candidate); } }