CoordinateAnimation QML Type
用于地理坐标属性的PropertyAnimation 。更多内容...
| Import Statement: | import QtPositioning |
| Inherits: |
属性
详细说明
一种专门的PropertyAnimation ,用于定义两个coordinates 之间的动画效果。
默认情况下,geoCoordinate 的latitude 会沿这两个坐标之间最短(测地线)距离的方向进行动画。由于CoordinateAnimation使用墨卡托地图投影,latitude 动画始终在-90到90度之间。longitude 动画路径不受限制,可在东西两个方向上超过180度。
可设置direction 属性来指定longitude 动画的进行方向。
另请参阅 《Qt Quick 》中的“动画和过渡”部分。
属性文档
direction : enumeration
该属性存储了geoCoordinate 的longitude 动画的方向。
| 常量 | 描述 |
|---|---|
CoordinateAnimation.Shortest | 经度动画将沿产生最短动画路径的方向进行。这是默认设置。 |
CoordinateAnimation.West | 经度动画始终向西移动,并可能跨越国际日期变更线。 |
CoordinateAnimation.East | 经度动画始终向东移动,可能会跨越国际日期变更线。 |
from : coordinate
该属性保存动画应开始的坐标。
to : coordinate
该属性保存动画应结束时的坐标。
© 2026 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.