如何让Map.Center瞬间改变

发布于 2025-01-01 08:04:46 字数 327 浏览 1 评论 0原文

我有一个地图控件,其中心绑定到视图模型中的 GeoCooperative 属性。 每当属性发生变化时,地图的中心就会相应地发生变化。 默认情况下,地图具有用于更改其视图的动画(它逐渐移动到新位置)。 但是,我不想要这个动画。 我希望地图立即以新位置为中心。 我已经设置了地图的动画:AnimationLevel="None",但它似乎没有改变任何东西。

动画通常看起来非常漂亮,但是,这个应用程序只处理非常小的视图中的位置。通过对地图中心进行微小的更改,动画只会让一切看起来都在晃动,而且需要很长时间才能完成。

一如既往,如果我需要澄清任何事情,请告诉我。

I have a map control with its center bound to a GeoCoordinate property in the viewmodel.
The map's center properly changes whenever the property changes.
By default, the map has a animation for changing its view (it gradually moves to the new location).
However, I do not want this animation.
I would like the map to instantly center on the new location.
I have already set the animation of the map: AnimationLevel="None", but it didn't seem to change anything.

The animation normally looks really nice, however, this app only deals with locations in a very small view. With small changes to the map's center, the animation just makes everything look like its shaking and it takes too long to finish.

As always, please let me know if I need to clarify anything.

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

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

发布评论

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

评论(1

书间行客 2025-01-08 08:04:46

我有相关的问题。尝试将 AnimationLevel 设置为其他值,然后设置回 None

I had have related problem. Try to set AnimationLevel to something else and than set back to None

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