Skip to content

Namespace update: L.Toolbar -> LeafletToolbar

Compare
Choose a tag to compare
@justinmanley justinmanley released this 25 Sep 01:27

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