时,该怎么做
使用以下代码Zoom 0-2从未被调用:
GMSTileURLConstructor urls = ^(NSUInteger x, NSUInteger y, NSUInteger zoom) {
NSString *tileTemplate =[NSString stringWithFormat:@"%@%tu_%tu_%tu.png",tileDirUrl,(zoom),x,y];
NSLog(@"zoom : %tu",zoom);
return [NSURL URLWithString:tileTemplate];
};
GMSCameraPosition *camera = [GMSCameraPosition cameraWithTarget:CLLocationCoordinate2DMake(0, 0) zoom:0.0f];
GMSMapView *mapView = [GMSMapView mapWithFrame:CGRectZero camera:camera];
[mapView setMinZoom:0 maxZoom:5];
tileLayer_ = [GMSURLTileLayer tileLayerWithURLConstructor:urls];
tileLayer_.map = mapView;
[mapView setMapType:kGMSTypeNone];
我的自定义地图显示为居中的,但始终处于缩放级别3.0f (即使我尝试用手势放大,我也将其锁定在Zoom级别3.0)
使GMSMAPVIEW在Zoom 0和2个tiles上显示一个256x256瓷砖,在Zoom 1?
它将不允许您比地图两个轴覆盖视图的缩放级别的缩放级别,这可能是吗?