DEV Community

Discussion on: I'm an open source enthusiast at Mapbox, the creator of Leaflet and 40+ other JS libraries, and a rock musician. AMA!

Collapse
 
laurentgontier profile image
laurent gontier • Edited

Hi Vladimir,
I would personally want to thank you for Leaflet. It is an amazing tool !
There was a question below about it's future and I'd love this library to stay around for a while.
Leaflet accepts many plugins but some of them may not be updated by their creator. So some really interesting functions may not be available. Maybe it could be a good idea to embed them to Leaflet and update them yourself along with the library. I'm especially thinking about Locate plug-in and others to support third party external formats (like check when user location overlaps a polygon)
Also, I've been wondering for a long time why it is not possible to rotate maps according to user's device heading.

Collapse
 
mourner profile image
Vladimir Agafonkin

Thank you!

  1. Plugins getting out of date is a serious problem, but adopting maintenance of other projects is not something we can usually do, as maintainers already have a lot on their plate. We have to rely on the community to keep most plugins maintained. What I'd love to do in future is creating a better plugin registry, with easy search, GitHub stars, version compatibility indication, maybe a badge of quality, etc — maybe that would help attracting plugin contributions and adding an incentive to keep them up to date.
  2. We might add rotation — there was even an attempt at this some time ago. It's just difficult to introduce rotation while keeping the code simple and easy to maintain, since it's a feature that affects most of the codebase. And there hasn't been enough demand for it to prioritize — usually rotation doesn't work well with raster maps (e.g. labels get upside down, etc.), and works much better in vector maps libraries like Mapbox GL.
Collapse
 
laurentgontier profile image
laurent gontier

Thanks, Vald
As for the plugin, I was thinking about just a few of them that are almost basic needs for map users (locate is, definitely !)
Better plug in management would be a must !