leaflet
leaflet copied to clipboard
add shapes and icons to legend
Is it currently possible to add shapes and/or icons to a legend?
I don't think it is currently possible. Legends are for colors only at the moment. That said, perhaps you can prepare the HTML code by yourself and use addControl()
to add it to the map.
Thanks for the reply. I might try that.
Has this issue been addressed in the last 6 years?