Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QML map center animation



  • Hi! How to implement animation to map center?
    CoordinateAnimation moves only MapQuickItem, I need change map center with animation.



  • Hi,

    You can define a behavior on the center property, as we do it in our AppMap component (AppMap is an enhancement of the Map component - it simplifies the handling of user position - and is part of our V-Play SDK):

    Behavior on center {
      CoordinateAnimation {
        duration: 400
        easing.type: Easing.InOutQuad
       }
    }
    

    Every change to the coordinate property is then animated.

    Best,
    Alex


Log in to reply