0

How we can use mapbox-android-sdk library for offline Maploading in android and how we can add MBTiles and Vector tiles for draw offline Map in android ?

I have create a project in which i have use mapbox-android-sdk library by this is load map only in online . Now what should i do for that .

2 Answers2

0

Have a look at Brad's answer here for how to dynamically save/cache tiles.

Using mbtiles looks to be fairly straightforward and is briefly outlined here.

Community
  • 1
  • 1
friedbunny
  • 2,421
  • 1
  • 23
  • 38
0

Please take a look at the following mapbox android offlical example link to download offline map in mapbox android SDK : https://www.mapbox.com/android-docs/maps/examples/download-a-simple-offline-map/. In order to give user an option to download a region in map - create a map screen so that user can select a particular location to download. From that selected location as shown in the example we have to pass the top-right point of map (north-east) and bottom-left point of map (south-west) point of map as attribute, so that the particular location will be downloaded. Mapbox recommends to use the offline locations plugin so that it will be downloaded asynchronously. Please refer this link for offline locations plugin : https://www.mapbox.com/android-docs/plugins/overview/offline/

Raj
  • 194
  • 1
  • 7