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

Problem with leaflet-measure-path and dragging circles #407

Closed
Jumpy555 opened this issue Feb 20, 2019 · 4 comments
Closed

Problem with leaflet-measure-path and dragging circles #407

Jumpy555 opened this issue Feb 20, 2019 · 4 comments

Comments

@Jumpy555
Copy link
Contributor

Hi, dragging a circle, with the leaflet-measure-path library embedded, is firing an error:
this._layer.setLatLng(...) is undefined

http://jsfiddle.net/Jumpy/1bqtnLxj/

@codeofsumit
Copy link
Contributor

Hi, based on previous issues I assume the problem is that leaflet-measure-paths overrides leaflet functions but does not return the instance - hence breaking method chaining.
I've created an issue in the repo:
ProminentEdge/leaflet-measure-path#29

Here are the issues from the past for reference:
ProminentEdge/leaflet-measure-path#11
ProminentEdge/leaflet-measure-path#18

In essence, the fix should come from leaflet-measure-path as it's altering leaflet behaviour.

@Jumpy555
Copy link
Contributor Author

Thank you!

@RobinBressan
Copy link

RobinBressan commented Mar 8, 2019

@codeofsumit Is it possible to publish a release including this fix on npm?

@codeofsumit
Copy link
Contributor

@RobinBressan will come soon!

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

3 participants