iOS Google Maps SDK新图标查看动画

时间:2016-06-09 11:38:11

标签: ios swift google-maps-sdk-ios ios-animations

根据有关GMSMarker新属性iconView的文档:

  

视图的行为就像clipsToBounds设置为YES一样,无论其实际值是什么

所以没有办法将clipToBounds改为NO?如果动画超出视图范围,它们应该如何工作?

Animation Example

    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)

0 个答案:

没有答案