Authored by Thomas Rasch

o Should have tested the last commit...

... ... @@ -44,8 +44,8 @@
self.opaque = NO;
CATiledLayer *tiledLayer = [self tiledLayer];
tiledLayer.levelsOfDetailBias = [[mapView tileSource] maxZoom] - 1;
tiledLayer.levelsOfDetail = [[mapView tileSource] maxZoom] - 1;
tiledLayer.levelsOfDetailBias = [[mapView tileSource] maxZoom];
tiledLayer.levelsOfDetail = [[mapView tileSource] maxZoom];
UITapGestureRecognizer *doubleTapRecognizer = [[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleDoubleTap:)] autorelease];
doubleTapRecognizer.numberOfTapsRequired = 2;
... ...
... ... @@ -1184,12 +1184,18 @@
- (void)setMinZoom:(float)newMinZoom
{
minZoom = newMinZoom;
// RMLog(@"New minZoom:%f", newMinZoom);
mapScrollView.minimumZoomScale = exp2f(newMinZoom);
}
- (void)setMaxZoom:(float)newMaxZoom
{
maxZoom = newMaxZoom;
// RMLog(@"New maxZoom:%f", newMaxZoom);
mapScrollView.maximumZoomScale = exp2f(newMaxZoom);
}
... ...