CoordinateAnimation QML Type

用于地理坐标属性的PropertyAnimation更多

Import Statement: import QtPositioning
Inherits:

PropertyAnimation

属性

详细说明

一个专门的PropertyAnimation ,用于定义两个坐标之间的动画。

默认情况下,坐标的纬度动画方向为两个坐标之间的最短(大地测量)距离。由于 CoordinateAnimation 使用墨卡托地图投影,因此纬度动画总是在 -90 度和 90 度之间。经度动画路径没有限制,可以在东西方向上超过 180 度。

可以设置direction 属性来指定经度动画的方向。

另请参阅 Qt Quick 中的动画和转换

属性文档

direction : enumeration

该属性用于指定坐标经度动画的方向。

可能的值有

  • CoordinateAnimation.最短(默认)- 经度动画的方向是产生最短动画路径的方向。
  • CoordinateAnimation.West(西)- 经度动画始终向西移动,并可能穿过日期线。
  • CoordinateAnimation.East(东)- 经度动画始终朝东方向运行,并可能穿过日期线。

from : coordinate

此属性保存动画开始的坐标。


to : coordinate

此属性保存动画结束的坐标。


© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.