3D relief like OsmAnd: the 3D button raises the terrain on its own DEM source (exaggeration 1.5), no longer needing Terrain shading or waiting for isStyleLoaded (false while tiles load, so it never came on); color-relief uses ["elevation"] (MapLibre 6), which had broken the whole Terrain shading overlay
CI / check (push) Successful in 22s
CI / deploy (push) Successful in 18s

This commit is contained in:
randy committed 2026-11-28 19:37:40 +01:00
1 parent dbe742321a
commit a3e5fefaf1
2 files changed
+45 -38

No files matched your search

+3 -4
View File
@@ -229,10 +229,9 @@ class ZoomLevelControl {
// Tilts the camera between a flat top-down view and a fixed 3D-perspective
// pitch — bearing stays untouched, so this is purely "look at it from an
// angle", not a rotate/compass control. Independent of the "Terrain
// shading" overlay toggle (overlays.js) — that adds a raster-dem hillshade/
// color-relief layer, this just moves the camera; combining both gives a
// real sense of relief but neither depends on the other.
// angle", not a rotate/compass control. Tilted, the ground is raised into
// real 3D relief (OverlaysControl.syncTerrain, overlays.js), with or
// without the "Terrain shading" overlay.
const PITCH_3D = 60;
class PitchToggleControl {