在离线iOS应用中使用MBTiles [英] Use of MBTiles in offline iOS app
问题描述
我已经有一个要使用的MBTiles格式存储的地图,该地图要在我制作的应用程序中使用.该应用程序在移动设备上无信号/无连接的情况下运行至关重要.
I already have a map stored using the MBTiles format that I want to use in an app I am making. It is vital that the app will run with no signal/connection on the mobile device.
Mapbox之前有一个示例,说明如何将MBTiles和RMMBTilesSource一起使用,以便可以将映射数据全部存储在本地.现在已弃用,请参见 https://github.com/mapbox/mapbox-ios-example .
Mapbox previously had an example of how to use MBTiles together with RMMBTilesSource so that the mapping data could all be stored locally. This has now been deprecated, see https://github.com/mapbox/mapbox-ios-example.
我还向Mapbox询问了他们是否打算将这个示例替换为另一个相似的示例.简而言之,我被告知,每个设备都必须从对Mapbox的直接请求中填充其自己的缓存,所以不是我要的内容.
I also enquired with Mapbox as to whether they were going to replace this example with another that was similar. In short, I was told that every device must populate its own cache from a direct request to Mapbox, so is not what I'm looking for.
有人知道一个替代平台(或替代实现),该平台允许我嵌入和读取本地存储的MBTiles文件源吗?
Does anyone know an alternative platform (or alternative implementation) that would allow me to embed and read a locally stored MBTiles file source?
推荐答案
我们将把MBTiles支持重新添加回SDK 2.x系列.观看此空间: https://github.com/mapbox/mapbox-gl-native /issues/584
We'll be re-adding MBTiles support back to the SDK 2.x series. Watch this space: https://github.com/mapbox/mapbox-gl-native/issues/584
这篇关于在离线iOS应用中使用MBTiles的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!