1
예제의 최대 확대/축소 수준을 19로 설정하면 확대/축소가 최대 20까지 증가합니다. 그 이유는 알지 못합니다. 항상 설정 한 것보다 1 배 더 줌 레벨입니다.iOS Google지도 SDK : maxZoom 수준 설정 문제
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:23.589571946369546
longitude:58.14204730042655
zoom:16];
self.mapView_.camera=camera;
self.mapView_.myLocationEnabled = YES;
self.mapView_.mapType = kGMSTypeHybrid;
self.mapView_.settings.compassButton = YES;
[self.mapView_ setMinZoom:5 maxZoom:19];
// Creates a marker in the center of the map.
GMSMarker *marker = [[GMSMarker alloc] init];
marker.position = CLLocationCoordinate2DMake(23.168520, 58.008163);
marker.map = self.mapView_;
// ------ add layer
// Implement GMSTileURLConstructor
// Returns a Tile based on the x,y,zoom coordinates, and the requested floor
GMSTileURLConstructor urls = ^(NSUInteger x, NSUInteger y, NSUInteger zoom) {
NSString *url = [NSString stringWithFormat:@"http://www.example.com/%tu/%tu/%tu.png", zoom, x, y];
NSLog(@"url=%@",url);
return [NSURL URLWithString:url];
};
감사합니다. @ztan ... 다시 확인하겠습니다. 어쩌면 실수를 한 것일 수도 있습니다. – user836026
나는 생각 링크에 같은 문제를 다시 게시했습니다. 확인해주세요 ... http://stackoverflow.com/questions/27606375/ios-google-map-sdk-setting-maxzoom-level-issue-when-using-tiles – user836026