Leaflet / Leaflet.toolbar

Flexible, extensible toolbars for Leaflet maps.
MIT License
197 stars 70 forks source link

Subtoolbar with leaflet1rc.1 problem #40

Closed rendrom closed 7 years ago

rendrom commented 8 years ago

Problems with the subtoolbar with leaflet library version "1.0.0-rc.1".

leaflet toolbar_subtoolbarproblem

rendrom commented 8 years ago
appendToContainer: function(container) {
        var constructor = (this.parentToolbar && this.parentToolbar.constructor) || this.constructor;
        var baseClass = constructor.baseClass + '-' + this._calculateDepth(),
                //...
}

these changes (and some css) enough for my app

justinmanley commented 8 years ago

Thanks for noticing this, @rendrom! I'm happy to accept a PR, if you want to put together a PR with the code that worked for you.

rendrom commented 8 years ago

https://github.com/rendrom/Leaflet.toolbar This code work for me, but still have some problem: the subtoolbar does not close by toolbar-0 ico clicking.

justinmanley commented 7 years ago

Fixed with https://github.com/justinmanley/leaflet-draw-toolbar.