Leaflet.Legend icon indicating copy to clipboard operation
Leaflet.Legend copied to clipboard

Font size

Open juanxo90 opened this issue 2 years ago • 1 comments

I wish to change the font size, how can add the function or something to change it?

juanxo90 avatar Oct 12 '21 23:10 juanxo90

The software adds css classes to the legend elements. The most flexible way to change font characteristics is by adding css for your site. No code changes required. Example - bold the legend title:

.leaflet-legend-title { font-weight: bold; }

gbrauen avatar Oct 20 '21 18:10 gbrauen