I have an .mbtiles file and I am using it for offline map (iOS MapBox SDK). But my .mbtiles doesn't have enough data (just simple green rectangle). I want to draw some lines(roads) between points (I download it from my rest API). I found the solution to use RMShape
, but I want to use already drawn map. I create my .mbtiles from osm and TileMill. Help me out please.
Asked
Active
Viewed 385 times
3

Artem Z.
- 1,243
- 2
- 14
- 36
1 Answers
0
WhirlyGlobe-Maply SDK can help you achieve this.
It has a mapview and a globe view which you implement on your viewcontroller.
Then you create a layer using your mbtile file as shown below:
let tileSource = MaplyMBTileSource(mbTiles: "your-mbtile-filename")
You add this layer on the globe or map to display the tiles.
- And using SDK's function like
addShapes()
, you can add, circles, vectors, labels, text and icons on the map/globe.
I tried adding lat and long lines programatically. Also tried adding some labels and spheres. This is how it looks ->

Jason Roman
- 8,146
- 10
- 35
- 40

Akshay Ayyanchira
- 61
- 7