From 6ba798827048b20ec6bf942ade7f65410451b20c Mon Sep 17 00:00:00 2001 From: Asheem Mamoowala Date: Thu, 5 Apr 2018 19:36:00 -0700 Subject: [PATCH] Use canonical zoom in querySourceFeatures .Addresses 2868 and 3722 --- src/source/tile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source/tile.js b/src/source/tile.js index f0feae19951..7eefe63b1d5 100644 --- a/src/source/tile.js +++ b/src/source/tile.js @@ -288,7 +288,7 @@ class Tile { if (!layer) return; const filter = featureFilter(params && params.filter); - const coord = { z: this.tileID.overscaledZ, x: this.tileID.canonical.x, y: this.tileID.canonical.y }; + const coord = { z: this.tileID.canonical.z, x: this.tileID.canonical.x, y: this.tileID.canonical.y }; for (let i = 0; i < layer.length; i++) { const feature = layer.feature(i);