Leaflet: Overlay Image dragging and resizing

Created on 17 Apr 2016  路  7Comments  路  Source: Leaflet/Leaflet

Hello, I want to drag/drop the image overlay and resize(change the bounds by dragging it from corners). I'm using the draggable function for this purpose, the similar way as it is described Here in Question. But, I couldn't find the new bounds in 'e', after the drag ends

Most helpful comment

@paulotabarro see https://github.com/ScanEx/Leaflet.imageTransform and https://github.com/publiclab/Leaflet.DistortableImage

The point of plugins is to keep core small and focused on features almost everybody needs. Path manipulation isn't considered such a feature.

All 7 comments

Hi, great to hear that you find Leaflet useful!

However, this issue tracker is used for reporting bugs and discussing new features. For questions on using Leaflet (including plugins), please use gis.stackexchange.com or stackoverflow.

This could be a new feature. When using the image overlays you have to pass the Image Bounds.
but there should be a way to drag/drop overlay images like other shapes (e.g: marker, line etc) drag/drop.

I dont know if draggable is natively developed for image overlays. If So, there is no way to fetch the updated lat/lngs at the end when you drop the image.

Not a core feature though. I'd suggest developing as a plugin first and, if it's trivial, we'd consider merging it into the core.

@fastesol @IvanSanchez any follow up on this?

@paulotabarro check the plugins, pretty certain there are multiple plugins that do this already.

Well, I have found some that do this on vectors but images not yet.. https://github.com/w8r/Leaflet.Path.Transform is a nice plugin that might be worth considering adding to leaflet.

@paulotabarro see https://github.com/ScanEx/Leaflet.imageTransform and https://github.com/publiclab/Leaflet.DistortableImage

The point of plugins is to keep core small and focused on features almost everybody needs. Path manipulation isn't considered such a feature.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brambow picture brambow  路  3Comments

JonnyBGod picture JonnyBGod  路  4Comments

zdila picture zdila  路  3Comments

jblarsen picture jblarsen  路  3Comments

CallMarl picture CallMarl  路  3Comments