SIGN IN SIGN UP

fix: sample elevation lookups from the rendered terrain surface (#8213)

* fix: sample elevation lookups from the rendered terrain surface

Where a location is covered by a rendered tile whose DEM has loaded,
getElevationForLngLat now samples the same surface the raycast hits,
so project() round-trips unproject() exactly. The covering-tile
traversal remains the fallback while tiles load and outside the
rendered coverage.

* test: drop the terrain fixture parameters with only one value in use

* test: wire each two-zoom terrain test's source tiles inline

* test: inline the two-zoom terrain setup into each test

---------

Co-authored-by: Harel M <harel.mazor@gmail.com>
J
John Carmack committed
062d7458ee6dad8363506f410f3a154e606a703a
Parent: cc59518
Committed by GitHub <noreply@github.com> on 8/24/2026, 9:48:47 PM