-
Hello, I wanted to plot local AQI raster data in leafmap and use these colours I created a matplotlib cmap but it looks like the library only supports built in cmaps. Is there a way to use custom colors for single band raster data? I also wanted to use split map to see different in AQI data from current hour to next hour but from what i can get from the documentation, split map either needs a pre existing basemap or COGs and doesn't work eith local raster files. Is there any workaround for this or can this be added as a feature? (Especially custom matplotlib cmap objects) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Good question. Here is an example. m.add_raster(dem, cmap=['#ff0000', '#ffff00', '#0000ff'], layer_name="DEM") |
Beta Was this translation helpful? Give feedback.
Good question. Here is an example.