<commit_before>Leaflet.Toolbar
===============

Extensible, flexible toolbar class for Leaflet maps.
<commit_msg>Explain rationale behind Leaflet.Toolbar plugin.<commit_after>Leaflet.Toolbar
===============

Extensible, flexible toolbar class for Leaflet maps.

Why Leaflet.Toolbar?
---------------

Leaflet.draw exports an `L.Toolbar` class, but one look at it is enough to tell that it wasn't designed to serve as a general-purpose constructor for Leaflet toolbars.  For example:
* Icons for all toolbar actions are given CSS classes prefixed with `leaflet-draw`.  Plugin developers aren't able to customize the CSS classes associated with each action.

What is a toolbar?
---------------

A toolbar is a UI element which exposes to users a set of actions.  Actions are triggered by clicks and may change the state of the map, add new layers to the map, or change the state of existing layers.



{'fraction_non_alphanumeric': 0.10801781737193764, 'fraction_numerical': 0.0, 'mean_word_length': 3.912568306010929, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4949658', 'n_tokens_mistral': 243, 'n_tokens_neox': 222, 'n_words': 120}