w8r / leaflet-labeled-circle

Special type of SVG marker with a label inside and draggable around the anchor point
https://w8r.github.io/leaflet-labeled-circle/demo/
MIT License
42 stars 10 forks source link

Drag&Drop others objects #15

Closed 00ricardo closed 4 years ago

00ricardo commented 4 years ago

Hello my friend! I am very interested in your plugin! I'm trying to integrate it into my work but I'm not getting it. I would also like to know if it is possible to drag & drop another object that is not a circle-marker, for example, I would like to do it with a semi-circle. The semi-circle is a plugin from another colleague.

80870843-e2720280-8ca0-11ea-8cc6-6adde23912a0

Could you help me? Thank you!

PS: [Semi-Circle Plugin here!]

w8r commented 4 years ago

@ealoticopve Ola! Yes, I think it's possible. But do you need to update the direction and opening angle of your semi-circle while dragging or just drag it altogether?

00ricardo commented 4 years ago

Hello, thanks for the quick response! I would like to change the direction of the semi-circle only. Briefly summarizing what I want, it may be better:

An example: The sensor in the photo has a direction (bottom left) and if I wanted to move it to the right, it would be enough to drag & drop the semi-circle, fixed on the sensor, giving the feeling that its pointing direction has been changed.

PS: Sorry for the portuguese message, i forgot to translate it hehe

w8r commented 4 years ago

Something like that? http://spacetime.nypl.org/Leaflet.GeotagPhoto/examples/camera.html https://github.com/nypl-spacetime/Leaflet.GeotagPhoto

00ricardo commented 4 years ago

Omg, amazing! That's exactly it! 1000 thanks!

w8r commented 4 years ago

You're welcome, say hi to Bert, the author, he's a great guy))