I want to add a pulse ring animation around a marker as a current user location in iOS google maps (like Uber). I tried with adding CABasicAnimation
to marker layer by addAnimation
. It is not working.
Also I tried animate the scale of the marker but the scale change did not happen. Can anybody help me with this thing?
somehow it is working now. I created a custom view and set that view into GMSMarker iconView. After that added animation into view layer.
Another method:
Another one:
Swift 3.0 code is below NOTE: Change the duration based on your requirement
pulse Image: