GMap Bearing rotation in smooth motion (avoid jerky effect when changing bearing values)

前端 未结 3 741
伪装坚强ぢ
伪装坚强ぢ 2021-01-04 03:23

I want to rotate GMap by changing the bearing angle value, so the camera rotates around the center point (360-Degree one full round ). When we change the bearing, there is a

3条回答
  •  伪装坚强ぢ
    2021-01-04 03:28

    After going through all possible cases, I came to know that GMap is not built with required feature of Rotating map in 360-Degree in one go with custom animation. Don't know if this appears in next GMap api version.

    For now, the possible solution is to change the animation logic, and instead of rotating 360-Degree we can rotate to e.g. 180-Degree with reduced animation speed (animation duration time).

    This allows us to bring required map surrounding search experience to the user.

    (For now I am posting this temporary answer, and allow others to update or post latest answer in future).


    I have submitted this animation control issue on GMap issue tracker, please START this issue in order to show your interest and feedback, so Google team can take this feature into their final consideration. https://issuetracker.google.com/u/1/issues/71738889

提交回复
热议问题