当我缩小后更改相机位置时

时间:2019-05-27 19:28:13

标签: ios swift google-maps

在我的地图视图上,已转到当前位置按钮,如果我单击此,则运行此代码

let currentLocation = _locationHelper.getCurrentLocation()
let location = GMSCameraPosition.camera(withLatitude: currentLocation.0, longitude: currentLocation.1, zoom: 14)

mapView.animate(to: location)

相机位置移到正确的位置,但我希望将其缩放缩小为每单击一次14

0 个答案:

没有答案