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)
| 归档时间: |
|
| 查看次数: |
911 次 |
| 最近记录: |