geoman-io / leaflet-geoman

🍂🗺️ The most powerful leaflet plugin for drawing and editing geometry layers
https://geoman.io
MIT License
2.21k stars 433 forks source link

New image element #1207

Closed SuperPat45 closed 2 years ago

SuperPat45 commented 2 years ago

It will be awesome if geoman can have a button to draw an image (like tree, boat, arrow) (not as a marker, but as a shape in the SVG layer because I need this image to zoom with the map). I also need the ability to edit, resize and rotate images.

There is a leaflet plugin for an image draw/edition on which we could be inspired: https://github.com/publiclab/Leaflet.DistortableImage Except I need an option to not distort the image by just enlarge, shrink, rotate and always keeping aspect ratio.

Falke-Design commented 2 years ago

This is already possible with https://github.com/publiclab/Leaflet.DistortableImage you only need to enable the correct actions