Xamarin形式地图滚动事件

发布于 2025-02-12 17:09:30 字数 758 浏览 0 评论 0原文

在我的应用程序项目中,我设置了一个以用户位置为中心的Xamarin表单图。现在,当用户将地图拖到用户位置上的某个地方时,我想让图标出现。

不幸的是,Xamarin Forms Maps仅有JA MAPClickClickClickClickClickClickClickClickClickClick Click ClickClick Click Click Clickclick Click Click Click Click Clickclick Clickclick of the Map Click trage trage,我必须在地图上单击另一个时间,以便触发事件。我也尝试使用手势识别器,但是它们既不直接在地图上工作,也不是我在地图上的网格上实现它们时。

一段时间后,我考虑了检查地图位置是否等于用户位置,并且我发现此教程 https://xamarinhowto.com/xamarin-forms-maps-getting-ladius-radius-forcation-radius-of-users-input/ 不幸的是,这对我不起作用,因为代码无法处理, .log()字符串。

您有解决我问题的解决方案吗?当我从位置拖动地图时,近来的图标应该像在iOS地图中一样出现。

In my application project, I have set up a Xamarin Forms Map which centers on the users position. Now I want to let an icon show up when the user dragged the map somewhere to recenter on the position of the user.

Unfortunately Xamarin forms maps only has ja MapClicked event so event when the map was dragged I have to click another time on the map so that the event is triggered. I tried using gesture recognizers as well but somehow they neither work on the map directly nor when I implement them on the grid over the map.

After some time, I thought about checking whether the map position equals the users position and i found this tutorial https://xamarinhowto.com/xamarin-forms-maps-getting-location-radius-of-users-input/ unfortunately this did not work for me either since the code could not handle .Log() for strings.

Do you have a solution for my problem? The recenter icon should just appear as it is in Ios Maps when I dragged the map from my position.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文