New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make that L.Toolbar inherits from L.Layer if it exists #21
Conversation
It's failing on #22 |
@yohanboniface - Could you explain a bit more? Where is the need to inherit from L.Layer coming from? |
Sure :) The Leaflet master So I thought that, as soon as we use Given that the toolbar is not really a layer but more of a control, maybe a stronger fix in the future would be to stop using What do you think? |
ping @manleyjster :) |
@yohanboniface - Will this PR make a difference to you immediately (i.e. are you currently using Leaflet master?), or are you anticipating future issues that will arise once Leaflet 1.0 is released? If this PR is anticipatory, I'd rather hold off on merging it for the time being, since I expect that there will be a great many changes to be made once Leaflet 1.0 comes out. I'd rather wait to work on 1.0 compatibility until the state of the library is settled and we can look at the whole pictures. This is great, though, because it's getting the discussion started! |
A bit of both ;) We are close to the 1.0 beta version: https://github.com/Leaflet/Leaflet/milestones/1.0-beta1 So as you prefer, I can maintain a Leaflet1.0 branch on my own fork in the meantime also. But I think such a huge milestone (Leaflet 1.0) needs to be done also by the community, porting plugins one by one before the release, so we can have feedback and bug report before issuing the release. For sure, you can wait for the first official beta. But given that those changes are both 0.7 and 1.0 compliant, I would merge, to help pushing the community forward, and help people that start migrating by anticipation ;) Anyway, your choice :) |
Since the changes are minimal, I'd say let's rebase and merge into master. |
This adds minimal compat with Leaflet master
97fc57f
to
757c9c1
Compare
Make that L.Toolbar inherits from L.Layer if it exists
This adds minimal compat with Leaflet master.
Thanks :)