Skip to content

Commit

Permalink
Use canonical zoom in querySourceFeatures .Addresses 2868 and 3722
Browse files Browse the repository at this point in the history
  • Loading branch information
Asheem Mamoowala committed Apr 6, 2018
1 parent e39c945 commit 6ba7988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/source/tile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6ba7988

Please sign in to comment.