Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

ChengPeng haidaoxiaofei

🎯
Focusing
View GitHub Profile
@martinsik
martinsik / ViewController.mm
Last active Jul 9, 2018
Source codes for tutorial on Creating .mbtiles DB for iOS MapBox from hi-res map image http://martinsikora.com/creating-mbtiles-db-for-ios-mapbox-from-hi-res-map-image
View ViewController.mm
#import "ViewController.h"
#import "MapBox.h"
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
RMMBTilesSource *offlineSource = [[RMMBTilesSource alloc] initWithTileSetURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"chernarus" ofType:@"mbtiles"]]];