Skip to content

Commit

Permalink
Fix terrain label rendering (#1778)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress authored Feb 25, 2022
1 parent 156bce4 commit bf55149
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mapbox/mapbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,9 @@ export default class Mapbox {
if (!nextProps.terrain || map.getSource(nextProps.terrain.source)) {
changed = true;
map.setTerrain(nextProps.terrain);
// Copy changes to the transform
// @ts-ignore
this._renderTransform.elevation = map.transform.elevation;
}
}
}
Expand Down

0 comments on commit bf55149

Please sign in to comment.