You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been exploring the new terrain layer a bit. When viewed with positive pitch, and when the terrain is extruded, it appears that tiles are removed before they actually leave the viewport. Here's a gif of the Sierra Nevada, California (i.e. terrain with significant elevation), where you can see that terrain/surface tiles are prematurely removed.
This doesn't happen in SF at sea level, or when viewed directly from above, so I presume it's due to the terrain extrusion.
There are also a few other small things that "feel weird" due to the terrain extrusion:
when rotating the map (i.e. cmd + click + pan), the map rotates around the "elevation zero" clicked point. So it doesn't feel like the map is rotating around the point actually picked, since the picked point has positive elevation.
It's easy to zoom in below the terrain extrusion.
I don't know how hard these are to fix, and I understand if you don't want to tackle every 3D terrain edge case. As it is, the terrain layer is really cool!
When TileLayer calculates the geo bounds of a viewport, we call viewport.unproject(screenPoint), which by default returns a location at z=0. This is usually fine until all data has significant z, as evident in the use case of TerrainLayer.
We could add a zRange prop to TileLayer to control the tile generation. TerrainLayer will need to figure out what z to request, though - maybe using the combined elevation range from all visible tiles? @chrisgervang
Description
I've been exploring the new terrain layer a bit. When viewed with positive pitch, and when the terrain is extruded, it appears that tiles are removed before they actually leave the viewport. Here's a gif of the Sierra Nevada, California (i.e. terrain with significant elevation), where you can see that terrain/surface tiles are prematurely removed.
This doesn't happen in SF at sea level, or when viewed directly from above, so I presume it's due to the terrain extrusion.
There are also a few other small things that "feel weird" due to the terrain extrusion:
when rotating the map (i.e. cmd + click + pan), the map rotates around the "elevation zero" clicked point. So it doesn't feel like the map is rotating around the point actually picked, since the picked point has positive elevation.
It's easy to zoom in below the terrain extrusion.
I don't know how hard these are to fix, and I understand if you don't want to tackle every 3D terrain edge case. As it is, the terrain layer is really cool!
Repro Steps
Environment (please complete the following information):
Logs
None
The text was updated successfully, but these errors were encountered: