Use of MBTiles in offline iOS app

后端 未结 2 1320
慢半拍i
慢半拍i 2021-01-20 04:50

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 devi

2条回答
  •  旧时难觅i
    2021-01-20 05:22

    MBTiles can be displayed in the Mapbox Maps iOS SDK by hosting a web server within your app and pointing the map to localhost. I've posted my solution here:

    https://gist.github.com/namannik/3b7c8b69c2d0768d0c2b48d2ed5ff71c

提交回复
热议问题