-
Notifications
You must be signed in to change notification settings - Fork 58
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
Resetting the bounding box with transform.reset() seems to fail after the first time #34
Comments
Seems to be working |
Unfortunately, I experience the same problem. However, when I change _getBoundingPolygon in Path.Transform.js to
by leaving out the geometryToLayer call, the bounding box is sized correctly every time reset is called. Version used: 1.1.2 |
If I'm using npm with this, and I don't want to directly modify the source file so others can easily get it working with npm install, how would you suggest me updating the above function? I believe it is not exposed on the transform enabled polyline. Thanks @m1900
|
+1. Issuing the same annoying problem. @hammad2506 Look at my Leaflet overrides i use to avoid some problems and conflicts between Leaflet plugins: leaflet.ts:
|
When changing a feature's geometry,
feature.transform.reset()
seems to correctly update the handles the first time, but not for subsequent geometry changes. Here's a minimal example: https://jsfiddle.net/xtv7c7sc/3/I'm not sure if this is the same issue as #13.
The text was updated successfully, but these errors were encountered: