如何在 PNG(或任何其他图像格式)上放置标记
我需要一个库推荐或一个允许我在 PNG 上放置标记并保存标记位置的解决方案。标记必须是 html/css 元素,允许用户单击标记来打开新窗口或创建新标记(并保存 XY 位置)。
“为什么不使用传单或谷歌地图 API?”
我无法使用像传单这样的库,因为我需要使用用户上传的图像(不能是地图图块/图层),并且图像可以有不同的尺寸(但不像地图那么大)
I need a lib recommendation or a solution that allows me to place a marker on a PNG, and save the marker location. The marker has to be a html/css element, allowing the user to click on the marker to open a new window or create a new marker (and save the X-Y loc).
"Why not use leaflet or google maps api?"
I cant use libs like leaflet because I need to use a user's uploaded image (can't be map tiles/layers), and the image can come in different sizes (but not big as a map)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我缺乏知识让我认为地图库不适合我,经过一番研究后我发现传单可以满足我的需要。我找到了一种无需预处理地图图块即可使用传单的方法。基本上我到目前为止所做的事情。 codepen.io/renanreddy/pen/bGYyQyV 我想这就是我正在寻找的。仍然存在“任何图像尺寸”的问题,但这是一个开始。
My lack of knowledge made me think map libs wouldn't work for me, after a little research I found out leaflet do what I needed. I found a way to use leaflet without preprocessed map tiles. Basically What i've done so far. codepen.io/renanreddy/pen/bGYyQyV I guess thats what I was looking for. Still have the issue of "any image size", but its a start.