I want pulse animation around marker
and i followed this but the problem is when map zoom level change the pulse animation not showing proper. Like when i set max zoom out it shows like very small dot and not scaling according to zoom level of google map
Asked
Active
Viewed 503 times
1

Phantômaxx
- 37,901
- 21
- 84
- 115

Chandan Sharma
- 2,803
- 1
- 17
- 25
-
so you need to get the camera position (or projection) of your `GoogleMap` – pskink Oct 13 '17 at 07:41
-
1yes i get projection value on different zoom level but how to determine that how much pulse radius i show on each zoom level so that animation is uniformly on each and every zoom level. – Chandan Sharma Oct 13 '17 at 07:49
-
well you need to scale `animation.getAnimatedValue()` by a current zoom level in: `lastUserCircle.setRadius((Float) animation.getAnimatedValue());` – pskink Oct 13 '17 at 07:53
-
yes exactly but how much value should i provide? Should i try manually determine all different value on different zoom level and set it so that pulse animation looks like uniformly? – Chandan Sharma Oct 13 '17 at 07:59
-
see the docs: `Zoom level is defined such that at zoom level 0, the whole world is approximately 256dp wide (assuming that the camera is not tilted). Increasing the zoom level by 1 doubles the width of the world on the screen. Hence at zoom level N, the width of the world is approximately 256 * 2 ^ N dp, i.e., at zoom level 2, the whole world is approximately 1024dp wide.` – pskink Oct 13 '17 at 08:07
-
any luck ? did you found any solution ? – Rajesh Koshti Oct 14 '22 at 08:53