Skip to content

Commit

Permalink
Fix perspective correction of symbols in distant tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
mpulkki-mapbox committed Dec 12, 2019
1 parent 5906bd2 commit 3d06253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/draw_symbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ function drawLayerSymbols(painter, sourceCache, layer, coords, isText, translate

if (!program) {
program = painter.useProgram(getSymbolProgramName(isSDF, isText, bucket), programConfiguration);
size = symbolSize.evaluateSizeForZoom(sizeData, tr.zoom);
}
size = symbolSize.evaluateSizeForZoom(sizeData, Math.floor(tr.zoom) !== bucket.zoom ? bucket.zoom : tr.zoom);

let texSize: [number, number];
let texSizeIcon: [number, number] = [0, 0];
Expand Down

0 comments on commit 3d06253

Please sign in to comment.