I have to add a pulse ring animation around a marker. As I see there is only NSObject in GOOGLEMAPS so we cannot add up a view . I have also tried to change or animate the scale of the marker but the scale change did not happen. Can anybody help me with this thing?
Asked
Active
Viewed 963 times
1
-
1please explain more about your code & show a little of your code – Mo Farhand Sep 09 '15 at 10:53
-
You can use it using MKAnotationView – baydi Sep 09 '15 at 10:55
-
I cannot use up MKMapkit . i am told to do it with google maps – Ravi Ranjan Sep 09 '15 at 15:47
-
DUPLICATE -> http://stackoverflow.com/questions/18529248/how-set-custom-annotation-markers-animated-rings-around-a-point-on-gmsmapview/29912964#29912964 – johndpope Aug 10 '16 at 16:51
-
check with this ans: http://stackoverflow.com/a/41185450/4831524 – Antony Raphel Feb 22 '17 at 13:10
1 Answers
1
I've worked quite a bit with clustering markers with Google Maps for iOS SDK. GMSMapView
uses OpenGL to render the markers on the map corresponding to the data points added via GMSMarker
s. They provide a basic pop animation on appearance, but nothing else.
Without tracking GMSMarker
movements and adding/keeping track of your own UIViews on the GMSMapView
, this doesn't seem possible. GMSMarker
lets the user specify a UIImage
to replace the default marker image, but not animate the rendered UIImage
, as the GMSMapView
is backed by OpenGL. It is quite limiting- clustering markers was difficult because you cannot replace the default GMSMarker
image with just a UIView
. It HAS to be a UIImage
.

abouzek
- 151
- 3
-
-
I have only seen the pop and opacity animation on google maps. Is there any way to use any CAAnimation or CALayer on google maps to do Pulse Animation – Ravi Ranjan Sep 09 '15 at 15:58