jjimenezshaw / Leaflet.Control.Layers.Tree

a Tree Layers Control for Leaflet
https://jjimenezshaw.github.io/Leaflet.Control.Layers.Tree/examples/basic.html
BSD 3-Clause "New" or "Revised" License
146 stars 36 forks source link

Adding Icons to Layers #7

Closed cmwright93 closed 5 years ago

cmwright93 commented 5 years ago

Hello,

I noticed there is an icon of the continents being used in the initial example, but no demonstration for how to implement the use of icons in the layers tree. Any code examples on how to incorporate icons in next to the layers? Thanks.

jjimenezshaw commented 5 years ago

Hi Sorry for the late answer. For some reason I didn't get any notification.

In the examples I used Unicode chars as regular HTML text. Probably to refer to this: https://emojipedia.org/world-map/ https://unicode-table.com/en/1F5FA/ 🗺 🗺

Be careful. Not every browser supports all of them. https://fontawesome.com is another option.