Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/114.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
IOS谷歌地图以一定的尺寸填充东北和西南纬度_Ios_Google Maps_Ios8_Google Maps Sdk Ios - Fatal编程技术网

IOS谷歌地图以一定的尺寸填充东北和西南纬度

IOS谷歌地图以一定的尺寸填充东北和西南纬度,ios,google-maps,ios8,google-maps-sdk-ios,Ios,Google Maps,Ios8,Google Maps Sdk Ios,我可以从中获得东北和西南纬度 bounds_ = [[GMSCoordinateBounds alloc] initWithRegion:mapView_.projection.visibleRegion]; CLLocationCoordinate2D southWest = CLLocationCoordinate2DMake(bounds_.southWest.latitude, bounds_.southWest.longitude); CLLocationCoordinate2D

我可以从中获得东北和西南纬度

bounds_ = [[GMSCoordinateBounds alloc] initWithRegion:mapView_.projection.visibleRegion];

CLLocationCoordinate2D southWest = CLLocationCoordinate2DMake(bounds_.southWest.latitude, bounds_.southWest.longitude);

CLLocationCoordinate2D northEast = CLLocationCoordinate2DMake(bounds_.northEast.latitude,bounds_.northEast.longitude);

我如何将东北和西南纬度的长度增加25%,以便将填充的坐标传递给API,并获得比屏幕视图区域稍大的图像

您可能需要更改Mapview相机的缩放级别

目标C代码示例:

[mapView_ animateToZoom:12];
有关更多信息,请阅读谷歌地图iOS页面