JxMapKit Waypoint点击事件
你好,jxmapkit 的航路点有点击事件吗?我正在尝试找到一种方法使航路点可单击,因此当单击航路点时,将打开一个框架。
谢谢
Hi is there a click event for the waypoints of jxmapkit? I am trying to find a way to make the waypoints clickable so when a waypoint is clicked, a frame will open.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了一个替代方案,我在路点周围的区域添加了一个鼠标单击侦听器,因此当单击路点下方或周围的区域时,框架将打开,但有两个问题,首先是路点周围的区域-点取决于缩放级别(您可以通过根据缩放级别更改可点击区域的半径来解决此问题),并且返回的单击位置的坐标不正确(我仍然找不到解决方案)。
不管怎样谢谢。
I found an alternative, I added a mouse click listener in the area around the way-point so when the area under or around the way-point is clicked, the frame will open but there are 2 problems, first the area around the way-point depend on the zoom level (You can solve this by changing the radius of the clickable area according to the zoom level) and the co-ordinates of the returned clicked location are incorrect (I still cannot find a solution to this).
Anyway Thanks.