CoordinateAnimation QML Type

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

Import Statement: import QtPositioning
Inherits:

PropertyAnimation

属性

详细说明

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

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

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

另请参阅 Qt Quick 中的动画和过渡

属性文档

direction : enumeration

该属性用于保存longitude 动画的方向coordinate

可能的值有

  • CoordinateAnimation.Shortest(最短)(默认)- 经度动画的方向是产生最短动画路径的方向。
  • 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.