iOS Google Maps SDK新图标查看动画

api*_*nho 8 ios google-maps-sdk-ios swift ios-animations

根据有关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)
Run Code Online (Sandbox Code Playgroud)