让谷歌地图 View 在 **Swift 2.1**
中显示整个多边形(或路径)的最佳方式是什么?
最佳答案
试试这个会有帮助的..
let bounds = GMSCoordinateBounds(path: path)
self.mapView!.animateWithCameraUpdate(GMSCameraUpdate.fitBounds(bounds, withPadding: 15.0))
关于ios - 在 iOS Swift 2.1 中适合谷歌地图 View 以包含多边形的最佳方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35428732/