/mapbox-elevation

A script to convert mapbox elevation tiles into grayscale heightmaps.

Primary LanguageJavaScriptMIT LicenseMIT

mapbox-elevation

A script to convert mapbox elevation tiles into grayscale heightmaps.
Demo clip

Various tools like Blender support generating meshes from grayscale heightmaps. Mapbox provides an API to access heightmaps, but uses a different format to encode the heights in order to allow for higher resolution in the elevation values.

When run with a local webserver, this program will take the file named heightmap.png (from the Mapbox API) and create a grayscale version using the Javascript Canvas API. The output in the Canvas can be saved as a new image.

See also

Licensing

This project is avaliable under the MIT License.