Open starwarcat opened 2 years ago
Haven't tried myself yet, but supposedly it needs this pixel encoding: https://github.com/tilezen/joerd/blob/master/docs/formats.md#terrarium Possibly limited to PNG
I just fixed something like this an hour ago.
What is happening is that the entire map is at sea level as it has no height data, your data probably accurate hovers in the 150-500m range? What you need to do is adjust your entire heightmap so that ideally your lowest point is at 0. I'm assuming you're following the elevation = -10000 + (({R} * 256 * 256 + {G} * 256 + {B}) * 0.1)
formula.
So basically you get the elevation of your lowest point and subtract it from your tile-set.
mapbox-gl-js version: v2.8.2
browser: Any
Steps to Trigger Behavior
map.addSource("rwanda-dem", { "type": "raster-dem", "tiles": ["/public/images/raster-dem/{z}/{x}/{y}.webp"], "tileSize": 514, "maxzoom": 18, "minzoom": 1, });