Skip to content

Commit

Permalink
Explain rationale behind Leaflet.Toolbar plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmanley committed Sep 23, 2014
1 parent 917b4da commit 3ffc263
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,16 @@ 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.


0 comments on commit 3ffc263

Please sign in to comment.