L.ImageOverlay dragging

29 kali dilihat
Langsung ke pesan pertama yang belum dibaca

freeze2000f

belum dibaca,
1 Sep 2016, 03.42.4701/09/16
kepadaLeaflet
I need to make ImageOverlays draggable. Since one can drag markers, polygons and polylines (L.Path.Drag) I am wondering how to adapt this function for georeferenced images.

This question has already been asked in other forums/on github but no working solution has been provided. (see e.g. https://github.com/Leaflet/Leaflet/issues/3883)

Either an adaption of the plugins Leaflet.ImageTransform, Leaflet.PathDrag or a DOM drag event should (maybe) do the trick.

Thanks for your help!

freeze2000f

belum dibaca,
3 Sep 2016, 14.31.2603/09/16
kepadaLeaflet
One workaround is to bind the imageOverlay to a draggable Polygon and redraw it on every update to the next postition (credits to alexander milevski).
See jsfiddle


Balas ke semua
Balas ke penulis
Teruskan
0 pesan baru