Qt/Qml:如何包括地图图块以供离线使用? [英] Qt/Qml: how to include map tiles for offline usage?

查看:422
本文介绍了Qt/Qml:如何包括地图图块以供离线使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在主要运行于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中刚刚得到了改进,但是对于那里的离线磁贴软件包,似乎没有开箱即用的解决方案:

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

推荐答案

从版本10.2.6开始,现在可以通过ArcGIS Runtime库使用离线maptile:

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆