mistic100 / Photo-Sphere-Viewer

A JavaScript library to display 360° sphere panoramas.
https://photo-sphere-viewer.js.org
MIT License
1.86k stars 672 forks source link

Hello, author How to support dragging icons to change coordinate positions after using MarkersPlugin annotations #1366

Closed guoshao99 closed 1 month ago

guoshao99 commented 1 month ago

Describe your problem

Hello, author How to support dragging icons to change coordinate positions after using MarkersPlugin annotations

Online demo URL

No response

Photo Sphere Viewer version

5.8.2

Plugins loaded

No response

Additional context

Hello, author How to support dragging icons to change coordinate positions after using MarkersPlugin annotations

mistic100 commented 1 month ago

This is not possible with this library. It is a library to view things, not to edit.

You can listen to "click" events on the viewer to move markers where the user clicked, but you cannot make drag-and-drop finctionnality.

guoshao99 commented 1 month ago

As you said, how should we obtain the coordinates required for marking the final mouse landing point by moving it with the mouse? How should this be converted

mistic100 commented 1 month ago

The viewer "click" event has all the data you need, including projected yaw+pitch

https://photo-sphere-viewer.js.org/guide/events.html#click-data-dblclick-data
https://photo-sphere-viewer.js.org/api/classes/core.events.clickevent

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because not enough information was provided. It will be closed if no further activity occurs.

html580 commented 1 month ago

my project use jqueryui draggable is ok