Skip to content

"raster-dem" source doesn't work with custom dem tiles. #11870

@starwarcat

Description

@starwarcat

mapbox-gl-js version: v2.8.2

browser: Any

Steps to Trigger Behavior

  1. I am trying to use my own 1 meter high resolution RGB tiles to setTerrain, rather than using mapbox://mapbox.mapbox-terrain-dem-v1, for a small area.
  2. The code is:
    map.addSource("rwanda-dem", { "type": "raster-dem", "tiles": ["/public/images/raster-dem/{z}/{x}/{y}.webp"], "tileSize": 514, "maxzoom": 18, "minzoom": 1, });
  3. The area's terrain was generated correctly with elevation, excep the whole area is floating from other part of the map where no elevation covered.

area

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions