私は MapBox SDK を使用しており、既に .mbtiles ファイルを生成しています。しかし、RMMapView で使用しているときは、それらの一部しかロードできません。すべてのタイルがロードされないのはなぜですか? たとえば、ズームレベル 0 では 16 個のタイルがあるはずですが、2 個しか表示されません。
- (void)viewDidLoad
{
[super viewDidLoad];
RMMBTilesSource *offlineSource = [[RMMBTilesSource alloc] initWithTileSetURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"nn" ofType:@"mbtiles"]]];
RMMapView *mapView = [[RMMapView alloc] initWithFrame:self.view.bounds andTilesource:offlineSource];
// default zoom
mapView.zoom = 0;
// hard code minimal zoom. Try to run in without it to see what happens.
mapView.minZoom = 0;
mapView.maxZoom = 3;
// hide MapBox logo
mapView.showLogoBug = NO;
// hide bottom right "i" icon
[mapView setHideAttribution:YES];
mapView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
mapView.adjustTilesForRetinaDisplay = YES; // these tiles aren't designed specifically for retina, so make them legible
[self.view addSubview:mapView];
// Do any additional setup after loading the view, typically from a nib.
}