Confused by versioning - differs greatly on npm, examples, and README
See original GitHub issue-
excited I found this repo! thank you all that are actively supporting Leaflet Draw. this may be exactly what I need for my project and it will make my life much easier.
-
im confused about the following. why the discrepancy with:
yarn add leaflet-draw
installs leaftlet.draw v1.0.2- leaflet examples use v0.4.2
- leaflet README show support for 0.7 and v1+
I understand and agree that I should not be copy/pasting code from the example to get started. But most times I like to start with the example, intentionally break the code and hack with it until I understand it, then start fresh by wiping clean. And let’s be honest here – most people use the examples to learn and evidently copy/paste.
But maybe I am missing something… is there a reason the examples don’t use the latest version of Leaflet Draw in production? Should I be using v0.4.2 in prod even though it’s not supported anymore Just a bit confused, that’s all. Thank you!
ps. I should note that I am using the most basic example from the README. see below. i get errors when I try to draw and also notice how the controls render. using version from yarn add leaflet-draw
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:11 (2 by maintainers)
Top GitHub Comments
I’m experiencing similar issues as OP. Can you post a working example using the latest version of Leaflet Draw, as currently published on NPM? It’s currently not working and having trouble getting started.
I’d hate to pile another piece of feedback but…
If I’m experiencing trouble getting started I wonder if other folks could benefit too.