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

How to set initial values for rotation and scale?

Open pd-robin opened this issue 3 years ago • 0 comments

Hi there, I can't seem to find a way to set initial values for rotation and scaling. Is that possible? Something like:

var polygon = L.polygon([..., ...], { transform: true, rotation: 0.6 }).addTo(map);

That would be super useful to save and load configurations.

Thanks for your help!

pd-robin avatar Jul 15 '22 23:07 pd-robin