Description
When using TerrainLayer with isTiled:true and specifying a zoomOffset prop (which is supported by underlying TileLayer), the zoomOffset is not passed from TerrainLayer to the child TileLayer instance. This results in the zoomOffset setting being ignored in TerrainLayer, so tiles are always fetched at actual viewport zoom regardless of user intent.
A user setting zoomOffset on a TerrainLayer expects the underlying tile requests to follow this parameter, matching the documented behavior for TileLayer.
Flavors
Expected Behavior
Setting zoomOffset on TerrainLayer should result in that value being used by the child TileLayer for tile selection.
When zoomOffset is set, the terrain tiles should be loaded for (actual zoom + zoomOffset), just like with a direct TileLayer.
Steps to Reproduce
- Create a TerrainLayer in tiled mode (using e.g. an elevationData URL template).
- Pass zoomOffset: 1 to TerrainLayer.
- Observe that terrain tiles are loaded at actual viewport zoom, not zoom+1.
https://codepen.io/asford/pen/pvRyMZg?editors=001
Environment
- Framework version: deck.gl@latest
- Browser: Any
- OS: Any
Logs
No response
Description
When using TerrainLayer with isTiled:true and specifying a zoomOffset prop (which is supported by underlying TileLayer), the zoomOffset is not passed from TerrainLayer to the child TileLayer instance. This results in the zoomOffset setting being ignored in TerrainLayer, so tiles are always fetched at actual viewport zoom regardless of user intent.
A user setting zoomOffset on a TerrainLayer expects the underlying tile requests to follow this parameter, matching the documented behavior for TileLayer.
Flavors
Expected Behavior
Setting zoomOffset on TerrainLayer should result in that value being used by the child TileLayer for tile selection.
When zoomOffset is set, the terrain tiles should be loaded for (actual zoom + zoomOffset), just like with a direct TileLayer.
Steps to Reproduce
https://codepen.io/asford/pen/pvRyMZg?editors=001
Environment
Logs
No response