Qt/Qml:如何包含地图瓦片以供离线使用? [英] Qt/Qml: how to include map tiles for offline usage?
问题描述
我需要在一个主要在 Android 和 iOS 上运行的 Qt/Qml 移动应用程序中包含离线图块(滑动地图).
I need to include offline tiles (slippy map) into a Qt/Qml mobile application that mainly runs on Android and iOS.
我找到的唯一一个有据可查且有效的解决方案是用于 Qt 的商业 Esri Arcgis Runtime.但是,创建切片包需要使用 Arcgis 堆栈,无论是桌面还是服务器(如果我弄错了,请纠正我).
The only well-documented and working solution I found is the commercial Esri Arcgis Runtime for Qt. However, creating tile packages requires using the Arcgis stack, either desktop or server (please correct me if I am mistaken).
https://developers.arcgis.com/qt/
我正在寻找一种开源且易于使用的替代方案.
I am looking for an open source and easy to use alternative.
QtLocation 刚刚在 Qt 5.5 中得到了改进,但那里似乎没有针对离线 tile 包的开箱即用解决方案:
QtLocation has just been improved in Qt 5.5, but there seems to be no out of the box solution for offline tile packages there:
http://doc-snapshots.qt.io/qt5-5.5/qtlocation-index.html
推荐答案
现在可以通过 ArcGIS Runtime 库使用离线地图,从版本 10.2.6 开始:
Using offline maptiles is now possible through the ArcGIS Runtime library, starting from version 10.2.6:
https://developers.arcgis.com/qt/qml/api-reference/class_tiled_map_service_layer.html
这篇关于Qt/Qml:如何包含地图瓦片以供离线使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!