mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
Fix terrain label rendering (#1778)
This commit is contained in:
parent
156bce4246
commit
bf5514908f
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user