Skip to content

Commit

Permalink
fix #5827 unblock labels with overscaled tiles correctly (#5859)
Browse files Browse the repository at this point in the history
  • Loading branch information
ansis authored Dec 14, 2017
1 parent d82a19e commit 369baa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/symbol/cross_tile_symbol_index.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class CrossTileSymbolLayerIndex {

const minZoom = Math.min(25, ...(Object.keys(this.indexes): any));

for (let z = tileID.canonical.z - 1; z >= minZoom; z--) {
for (let z = tileID.overscaledZ - 1; z >= minZoom; z--) {
const parentCoord = tileID.scaledTo(z);
if (!parentCoord) break; // Flow doesn't know that z >= minZoom would prevent this
const parentIndex = this.indexes[z] && this.indexes[z][parentCoord.key];
Expand Down

0 comments on commit 369baa3

Please sign in to comment.