leaflet icon indicating copy to clipboard operation
leaflet copied to clipboard

add shapes and icons to legend

Open efh0888 opened this issue 9 years ago • 3 comments

Is it currently possible to add shapes and/or icons to a legend?

efh0888 avatar Sep 30 '15 14:09 efh0888

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.

yihui avatar Sep 30 '15 15:09 yihui

Thanks for the reply. I might try that.

efh0888 avatar Oct 13 '15 20:10 efh0888

Has this issue been addressed in the last 6 years?

jpvanek avatar Apr 21 '22 16:04 jpvanek