本页内容

MapView QML Type

一个交互式地图查看器组件。更多...

Import Statement: import QtLocation 6.12
Inherits:

Item

属性

详细说明

MapView 封装了 Map 组件,并添加了典型的交互功能:调整缩放级别、平移和倾斜地图。

该组件的实现是由若干可单独使用的较小构建模块组成的 QML 组合。如果您希望对该组件的自有版本进行修改,可以复制安装在qml/QtLocation 模块目录中的 QML 文件,并根据需要进行修改。

另请参阅 Map 。

属性文档

map : Map

该属性可访问底层的 Map 实例。

maximumZoomLevel : real

地图的最大有效缩放级别。

另请参阅 Map::maximumZoomLevel 。

minimumZoomLevel : real

根据视图大小确定的最小缩放级别。

另请参阅 Map::minimumZoomLevel 。

© 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.