如何为我的特定 qml 应用程序使用离线 mapbox?

How to use offline mapbox for my specific qml application?

我从 Github 克隆了 mapboxgl。我按照步骤操作。 https://github.com/mapbox/mapbox-gl-native/tree/master/platform/qt

当我在 mapbox-gl-native 目录下输入 make 运行-qt-app 命令时,映射 运行ning。但我想在我的 qml 应用程序中包含离线地图以通过 qt creator 实现。

我该怎么做?你能帮帮我吗?

该存储库包含 Qt 绑定的代码,不应直接使用。

使用自 Qt 5.9 起可用的 "mapboxgl" 插件。在那里你可以指定离线数据库的路径:

https://doc-snapshots.qt.io/qt5-5.9/location-plugin-mapboxgl.html#optional-plugin-parameters