You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 9, 2018. It is now read-only.
I'm using 1.6.1. The drawing of the tiles is very slow. I'm using offline map because there is no network.
The mbtiles file is about 20 MB is size. When panning you have to wait and watch the tiles draw. Is there any way to speed this up? In 1.4 the performance seemed better. Would I be better served to go back to an older version?
Any help would be appreciated.
here is my map loading code;
- (void)viewDidLoad
{
[superviewDidLoad];
_minZoom = 12;
_maxZoom = 17;
_initialZoom = 13;
NSString* path = [[NSBundlemainBundle] pathForResource:@"cayman13-16regular"ofType:@"mbtiles"];
NSURL *url = [NSURLfileURLWithPath:path];
RMMBTilesSource *fileSource = [[RMMBTilesSource alloc] initWithTileSetURL:url];
_mapView = [[RMMapView alloc] initWithFrame:self.view.bounds andTilesource:fileSource];
RMSphericalTrapezium mapBoundingBox = fileSource.latitudeLongitudeBoundingBox;
[_mapView setConstraintsSouthWest:mapBoundingBox.southWest northEast:mapBoundingBox.northEast];
_mapView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
_mapView.adjustTilesForRetinaDisplay = YES; // these tiles aren't designed specifically for retina, so make them legible
[_mapView setDelegate:self];
// Add the map to the view
[self.view addSubview:_mapView];
_mapView.maxZoom = _maxZoom;
_mapView.minZoom = _minZoom;
_mapView.zoom = _initialZoom;
}