Supported Elevation Maps
Maptaskr Power Maps supports the MapLibre Terrain RGB format, which encodes elevation data in RGB color channels. This allows for detailed 3D terrain visualization and elevation analysis within the application. By configuring a Terrain-RGB layer as a Slippy Image Layer, users can seamlessly integrate elevation data into their maps, enabling advanced features such as digital elevation modeling, slope analysis, and terrain profiling.
Maptaskr Elevation Map
Layer Description
Maptaskr provides an elevation map layer that utilizes the MapLibre Terrain RGB format. This layer encodes elevation data in RGB color channels, allowing for detailed 3D terrain visualization and elevation analysis within the application. This layer is sources from the JAXA ALOS World 3D - 30m (AW3D30) dataset, which provides global elevation data at a resolution of 30 meters. The AW3D30 dataset is derived from the Advanced Land Observing Satellite (ALOS) and offers comprehensive coverage of the Earth's surface, making it an excellent choice for applications requiring accurate elevation information.
Implementation Method
Built into the "Maptaskr Street View w/ Elevation" Basemap.
Elevation Decoding
Elevation values are decoded from RGB pixels using the formula:
elevation = -10000 + ((R * 256 * 256 + G * 256 + B) * 0.1)
Where R, G, B are the red, green, and blue channel values (0-255), and elevation is returned in meters.
Use Cases
- Digital Elevation Model (DEM) visualization
- 3D terrain rendering
- Slope and watershed analysis
- Visualizing verticality of coordinates.
Custom Terrain-RGB Layer
Layer Description
A Terrain-RGB layer provides elevation data encoded in raster tiles using RGB color channels. Each pixel's RGB values represent elevation measurements that can be decoded to create Digital Elevation Models (DEM) for 3D terrain visualization, slope analysis, and elevation queries.
Implementation Method
Configure as a terrain layer style with terrain-RGB tiles.
Required Endpoints
Must serve terrain tiles in PNG format with RGB-encoded elevation data.
Example:
https://api.mapbox.com/v4/mapbox.terrain-rgb/{z}/{x}/{y}.pngraw?access_token=YOUR_ACCESS_TOKEN
Required Response
The server should return PNG tiles with RGB-encoded elevation data. Each pixel represents an elevation value that can be decoded using the standard Terrain-RGB formula.
Elevation Decoding
Elevation values are decoded from RGB pixels using the formula:
elevation = -10000 + ((R * 256 * 256 + G * 256 + B) * 0.1)
Where R, G, B are the red, green, and blue channel values (0-255), and elevation is returned in meters.
Use Cases
- Custom Digital Elevation Model (DEM) visualization
- Higher quality elevation tiles around a specific area.