Martin Journois
Martin Journois
In fact a `Colormap` is not a `Layer` in Leaflet's sense. So it's not trivial to add it to a `LayerControl`. But it may be possible to do that in...
> Anyway I think this issue now can be turned to feature quest I guess :) True. And that would be a useful feature btw. Thanks for the idea and...
Thanks to your link @koldunovn , I finally found a way of doing it. See [**here**](http://nbviewer.jupyter.org/gist/BibMartin/f153aa957ddc5fadc64929abdee9ff2e). But I don't know where it should be put: - As a method in...
According to [this page](http://nbviewer.jupyter.org/github/python-visualization/folium/blob/master/examples/Colormaps.ipynb)'s latest example, you just need to: ``` python import branca.colormap as cm colormap = cm.linear.Set1.scale(0, 35).to_step(10) colormap.caption = 'A colormap caption' m.add_child(colormap) ``` But : -...
BTW: we could have a method in `folium.Map` taht helps the creation of the legend.
:+1: