Releases: Leaflet/Leaflet.toolbar
Releases · Leaflet/Leaflet.toolbar
Leaflet 1.0 compatibility
This release makes Leaflet.toolbar compatible with Leaflet 1.0+.
Leaflet.toolbar should still work with Leaflet 0.7.x, but will look the best with Leaflet 1.0+ (for example: the Leaflet.toolbar toolbar and Leaflet zoom toolbar will be slightly different sizes if Leaflet 0.7.x is used).
In this release:
- CSS changes to accommodate change from box-shadow --> border around toolbars.
- JS changes to handle additional events
Add .min.js and .min.css files for cdnjs
Non-breaking changes:
- Add .min.js and .min.css files in dist/ directory.
Namespace update: L.Toolbar -> LeafletToolbar
Rename the namespace for all Leaflet.toolbar classes to avoid clashes with Leaflet.draw.
Migration:
- Use leaflet-draw-toolbar and include leaflet-draw-toolbar JavaScript and CSS per the instructions in the README in that repository.
- Rename:
- L.DrawToolbar.Control -> LeafletToolbar.DrawToolbar
- L.EditToolbar.Control -> LeafletToolbar.EditToolbar.Control
- L.EditToolbar.Popup -> LeafletToolbar.EditToolbar.Popup
v0.1.2: 0.1.2
0.1.2
- Fix mysterious errors thrown when a popup toolbar is closed by a click event on an icon inside it.
v0.1.1: 0.1.1
0.1.1
- Fixes issues #3, #9, #16, #17, #18. Among other features and bugfixes, this release:
- Adds offset to popup toolbars on markers.
- Allows only one toolbar of each type on the map at a time.
- Prevents click, dblclick, and mousemove events on toolbars from propagating up to the map.
- Adds class factories
L.toolbar.control
,L.toolbar.popup
, andL.toolbar.toolbarAction
. - Adds a grunt task for updating gh-pages:
grunt gh-pages:update
.
BREAKING CHANGES
- Renames dist/ files to conform with Leaflet naming conventions.
In particular,Leaflet.Toolbar.js
becameleaflet.toolbar-src.js
, andLeaflet.Toolbar.css
becameleaflet.toolbar.css
.