根据有关GMSMarker新属性iconView的文档:
视图的行为就像clipsToBounds设置为YES一样,无论其实际值是什么
所以没有办法将clipToBounds改为NO?如果动画超出视图范围,它们应该如何工作?
let marker = GMSMarker()
marker.title = "Stop 1"
marker.position = CLLocationCoordinate2DMake(-33.86, 151.20)
marker.map = mapView
let imageView = UIImageView(image: UIImage(named: "markerIcon"))
marker.iconView = imageView
let pulseEffect = LFTPulseAnimation(repeatCount: Float.infinity, radius:45, position:imageView.center)
marker.iconView.layer.insertSublayer(pulseEffect, below: imageView.layer)