Leaflet.Path.Transform
Leaflet.Path.Transform copied to clipboard
With reset for transform polygon
Thank you for the PR @sujathabharathi , but I don't understand what it does, since all the changes are in the built and obfuscated code.
What did you change in the src folder and why?
~In my eyes this PR can be closed.~
The wanted change is: _getBoundingPolygon:function(){ return new L.Rectangle(this._path.getBounds(),this.options.boundsOptions)}
I think because of: https://github.com/w8r/Leaflet.Path.Transform/issues/34#issuecomment-452701124
But this was not working for me when the layer was rotated. Because when the bounds are passed to L.Rectangle it is not rotated.
Edit: This is not a nice solution but it is better then nothing. Now I use it too.