在QT / QML中是否有IOS的visibleMapRect?

问题描述 投票:0回答:1

在IOS中,visibleMapRect返回地图视图当前显示的区域。

使用Qt / QML,我们可以从屏幕上的点获得单独的坐标,如:

PointNW = map.toCoordinate(Qt.point(0,0))

有没有一种方法可以直接获取当前在Qt / QML中显示的geoRectangle?

感谢帮助

qt maps qml coordinates
1个回答
0
投票

好的,我找到了!答案是:visibleRegion

在这里:http://doc.qt.io/qt-5/qml-qtlocation-map.html#visibleRegion-prop

如何在C ++中使用它:QML Map visible region

© www.soinside.com 2019 - 2024. All rights reserved.