Swift 3 和谷歌地图
如何在 Google map 上绘制一对动画圆圈,如下图所示:
我已经写了下面的代码,但仍然不是我想要的
let circleCenter : CLLocationCoordinate2D = CLLocationCoordinate2DMake(21.728178, 79.1201635);
let circ = GMSCircle(position: circleCenter, radius: 10 * 1609.34)
circ.fillColor = UIColor(red: 0.0, green: 0.7, blue: 0, alpha: 0.1)
circ.strokeColor = UIColor(red: 255/255, green: 153/255, blue: 51/255, alpha: 0.5)
circ.strokeWidth = 2.5;
circ.map = self.googleMap;
最佳答案
我从这个答案链接 https://stackoverflow.com/a/41185450/2397493 找到了与您正在寻找的东西相近的东西
注意:您必须下载答案底部包含的图片并将其命名为“pulse”:
pulseRingImg.image = UIImage(named: "pulse")
关于ios - 动画用户定位圈 swift 3 + Google map ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45841357/