用户友好的 JavaScript 工具,用于在图像上选取坐标

发布于 2025-01-01 01:42:30 字数 437 浏览 2 评论 0原文

我正在开发一个用于管理计算机房的应用程序。 房间经理将看到房间地图(带有桌椅),并可以单击图像来标记计算机的位置。

该坐标将用于向用户显示房间地图,并在地图上显示哪些计算机可以免费使用。

使用 javascript 获取坐标很容易(可以找到该问题的答案 stackoverflow 上的其他地方)。

我希望有一个交互式工具/库,其中包含以下功能:

  • 拖放
  • 显示坐标,同时拖动鼠标
  • 缩放功能,
  • 从图像中添加/删除坐标对等。

有人知道这样的工具吗?

I am working on an application for managing computer-rooms.
The room-manager will see a map of the room (with tables and chairs) and can click on the image to mark the locations of computers.

The coordinates will be used to show a map of the room to users, and show on the map which computers are free to be used.

Getting the coordinates using javascript is easy (the answer to that question can be found elsewhere on stackoverflow).

I am hoping for an interactive tool/library, with things like:

  • drag and drop
  • showing coordinates while dragging the mouse
  • zoom functionality
  • adding/removing coordinate pairs from the image and that sort of things.

Does anybody know of such a tool?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

殤城〤 2025-01-08 01:42:30

查看此页面 http://jqueryui.com/demos/position/,单击 < em>查看源代码,获得灵感并编写自己的 jquery-ui 插件。

Have a look to this page http://jqueryui.com/demos/position/, click on View source, get inspired and write your own jquery-ui plugin.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文