Closed bameyrick closed 1 week ago
We'd love to use this library but be able to provide our own colors, so I've created this PR to enable providing either the existing ColorBrewer or CARTOColors scheme or an array of hex codes to the color hash.
color
e.g.
map.addSource('sourceId', { type: 'raster', url: 'cog://https://labs.geomatico.es/maplibre-cog-protocol/data/kriging.tif#color:["#ffeda0","#feb24c","#f03b20"],1.7,1.8,c', });
Hi! I've reduced the minimum hex codes for custom colors to 2 now, and added a demo page in the source
We'd love to use this library but be able to provide our own colors, so I've created this PR to enable providing either the existing ColorBrewer or CARTOColors scheme or an array of hex codes to the
color
hash.e.g.