Skip to content
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

Support Leaflet 1.0 #19

Open
kklimczak opened this issue Oct 23, 2016 · 10 comments
Open

Support Leaflet 1.0 #19

kklimczak opened this issue Oct 23, 2016 · 10 comments
Milestone

Comments

@kklimczak
Copy link
Owner

No description provided.

@kklimczak kklimczak added this to the 0.4 milestone Oct 23, 2016
@grundid
Copy link

grundid commented Mar 31, 2017

Hi. I find your project very interesting and would like to contribute. I see you already have leaflet 1.0.1 as dependency in your bower file.
Is this ticket still an issue? What problems do you see with leaflet 1.0?

@kklimczak
Copy link
Owner Author

Hi
I bumped leaflet version to 1.0.1 and forgot close issue.
Nevertheless I think that plugin need to rewrite some methods (i.e. pin to circle) because new version of leaflet add extra API features doesn't available when I was writing leaflet.pin.

So if you have some idea connected with plugin, feel free to make pull request. ;)

@grundid
Copy link

grundid commented Mar 31, 2017

Thanks. Right now I've updated all deps to the latests versions.
The main issue seams to be due to a breaking change in beta 1: https://github.com/Leaflet/Leaflet/blob/master/CHANGELOG.md#10-beta1-july-14-2015

getLatLngs now returns an array of nested rings instead of an array of points. This does not work with the "closest" method from the geometryUtils lib.
Since your Pin plugin uses only one method (closestLayerSnap) from the GeometryUtils lib maybe I can fix it myself ;)

@kklimczak
Copy link
Owner Author

I didn't read this changelog so if you can fix it, I don't see why not. ;)

I'd like to improve pin to circle, because it's a my proof of concept and at this moment work but not very well.

@grundid
Copy link

grundid commented Apr 19, 2017

hi. I just wanted to note that I switched my focus to mapbox-gl draw tool. Here is also some progress on snap functions.
mapbox/mapbox-gl-draw#583

@tmh12345
Copy link

May I know this plugin support the latest version of leaflet.draw version 1.0.2 and leaflet.js 1.3.1?

@kklimczak
Copy link
Owner Author

At this moment, I don't know. The last changes to this project I has been made 2 years ago. In the future I will make support for leaflet 1+ but now I don't have enough time to do this.

@tmh12345
Copy link

Thank you a lot. Wish you make it support.

@overly-engineered
Copy link
Contributor

Hi @kklimczak just started using your project. I've got a fix for some of the issues with leaflet 1, and also for the layer pinning to themselves bughttps://github.com/kklimczak/Leaflet.Pin/blob/master/src/leaflet.pin.js#L185

Can i create pull requests for them?

@kklimczak
Copy link
Owner Author

Go ahead :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants