Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML map center animation

QML map center animation

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 1.5k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anton X
    wrote on last edited by A Former User
    #1

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

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alexvplay
      wrote on last edited by alexvplay
      #2

      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

      CoFounder of Felgo - https://felgo.com/qt

      Felgo simplifies Mobile App & Game Development with Qt
      What others say: Felgo scored #1 in Cross-Platform App Development Tools Report - see why: https://goo.gl/rgp3rq

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved