How to make the map object rotates like a navigation system do ?

  • Is there a way to rotate the content of a QML Map? I tried to use:

    PositionSource {
    id: osmPositionSource

    onPositionChanged: {
        if(position.directionValid === true) {
            osmMap.rotation = position.direction


    Map {
    id: osmMap
    // [...]
    In this case the whole Map object rotates like a Rectangle. However, I only want to rotate the map tiles like a navigation system do.