[Qt] Implement bearing on the QML Mapbox Map type

This commit is contained in:
Thiago Marcos P. Santos
2016-05-02 19:14:54 +03:00
parent 91cdcbebf4
commit 41f63db98b
3 changed files with 34 additions and 0 deletions

View File

@@ -65,4 +65,8 @@ void QQuickMapboxGLRenderer::synchronize(QQuickFramebufferObject *item)
if (syncStatus & QQuickMapboxGL::PanNeedsSync) {
m_map->moveBy(quickMap->swapPan());
}
if (syncStatus & QQuickMapboxGL::BearingNeedsSync) {
m_map->setBearing(quickMap->bearing());
}
}