Colormaps¶
deck.gl-raster
includes some public colormaps in the Github repository. These
generally come from rio-tiler
, which were themselves mostly
derived from Matplotlib. A few custom colormaps that are commonly-used with
raster data are included.
To use them, you can load the PNG via the jsdelivr CDN, e.g.:
https://cdn.jsdelivr.net/gh/kylebarron/deck.gl-raster/assets/colormaps/{colormap_name}.png
Note that the colormap name below must be lower case in the URL, e.g. for the yellow-orange-red colormap, use:
https://cdn.jsdelivr.net/gh/kylebarron/deck.gl-raster/assets/colormaps/ylorrd.png
The image you load should look like:
Included Colormaps¶