Marin Govorcin

Results 1 comments of Marin Govorcin

I resolved this issue in this way: cmap = branca.colormap.LinearColormap(cm.magma_r.colors, vmin=0.3, vmax=1) cmap_func = lambda x: ImageColor.getcolor(cmap(x), 'RGBA') if ~np.isnan(x) else (0,0,0,0) folium.raster_layers.ImageOverlay(numpy_array, opacity=0.6, bounds=map_bounds colormap=cmap_func).add_to(map)