Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/119.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
GMS在Swift iOS中圈出不规则的边框_Ios_Swift_Iphone_Xcode_Google Maps Sdk Ios - Fatal编程技术网

GMS在Swift iOS中圈出不规则的边框

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

我正在使用谷歌地图,我用下面的代码创建了一个圆圈,但我的圆圈的边界是不规则的。我的问题是如何使它像MKCircle一样平滑

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时,我也会遇到此问题。它变成了不规则的形状。谢谢你,伙计。我会检查的