Leaflet.Path.Transform icon indicating copy to clipboard operation
Leaflet.Path.Transform copied to clipboard

With reset for transform polygon

Open sujathabharathi opened this issue 5 years ago • 2 comments

sujathabharathi avatar Mar 04 '20 01:03 sujathabharathi

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?

w8r avatar Mar 04 '20 10:03 w8r

~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. path_rotation

Edit: This is not a nice solution but it is better then nothing. Now I use it too.

Falke-Design avatar Feb 01 '21 21:02 Falke-Design