Do marker animations exist on GoogleMaps SDK for iOS?

后端 未结 4 1963
小蘑菇
小蘑菇 2020-12-30 08:36

Is it possible to move/rotate GMSMarker on GMSMapView with animation?

4条回答
  •  有刺的猬
    2020-12-30 09:17

    For now markers only have an option to appear animated.

    Recently wrote clusterization lib for Google Maps SDK for iOS with animated collapse/disintegration. And the approach I used was animation through manual position update. If there's a lot markers on screen simultaneously animating it's sloow (even with all the possible calculations in background and results caching), so needs a lot of optimizations and limitations. So for now it's good to think a lot if you really need animations like this with Google Maps SDK for iOS or sometimes, especially on older devices, the optimization you'll have to use will be disabling your custom animations at all.

提交回复
热议问题