GMS在Swift iOS中圈出不规则的边框
我正在使用谷歌地图,我用下面的代码创建了一个圆圈,但我的圆圈的边界是不规则的。我的问题是如何使它像MKCircle一样平滑GMS在Swift iOS中圈出不规则的边框,ios,swift,iphone,xcode,google-maps-sdk-ios,Ios,Swift,Iphone,Xcode,Google Maps Sdk Ios,我正在使用谷歌地图,我用下面的代码创建了一个圆圈,但我的圆圈的边界是不规则的。我的问题是如何使它像MKCircle一样平滑 let circ = GMSCircle(position: circleCentreCoordinate, radius: CLLocationDistance(radius)) circ.fillColor = UIColor.purple.withAlphaComponent(0.2) circ.strokeColor
let circ = GMSCircle(position: circleCentreCoordinate, radius: CLLocationDistance(radius))
circ.fillColor = UIColor.purple.withAlphaComponent(0.2)
circ.strokeColor = UIColor.purple.withAlphaComponent(0.7)
circ.strokeWidth = 2
circ.map = self.mapView
let update = GMSCameraUpdate.fit(circ.bounds())
mapView.animate(with: update)
当我的半径为30米时,它会显示这样的情况
当半径为200+米时,它就像
此问题出现在谷歌地图3.1.0中,更新为谷歌地图3.3.0,这将解决您的问题。您找到解决方案了吗?当地图缩放级别超过18.0时,我也会遇到此问题。它变成了不规则的形状。谢谢你,伙计。我会检查的