summaryrefslogtreecommitdiff
path: root/platform/glfw
diff options
context:
space:
mode:
authorSudarsana Babu Nagineni <sudarsana.babu@mapbox.com>2019-03-25 23:39:31 +0200
committerSudarsana Babu Nagineni <sudarsana.babu@mapbox.com>2019-03-28 16:41:15 +0200
commit11afef7825d622a237fa026e45e6d61b4de94068 (patch)
tree85f2eaa3f145a59a869ed29311369649df4388cb /platform/glfw
parente639087c9103b25bd0ea7594ab4280c227243f88 (diff)
downloadqtlocation-mapboxgl-11afef7825d622a237fa026e45e6d61b4de94068.tar.gz
[core] Add interface to change the orientation through MapOptions
Diffstat (limited to 'platform/glfw')
-rw-r--r--platform/glfw/glfw_view.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/glfw/glfw_view.cpp b/platform/glfw/glfw_view.cpp
index e768851a53..601642cfa6 100644
--- a/platform/glfw/glfw_view.cpp
+++ b/platform/glfw/glfw_view.cpp
@@ -385,7 +385,7 @@ GLFWView::makeImage(const std::string& id, int width, int height, float pixelRat
void GLFWView::nextOrientation() {
using NO = mbgl::NorthOrientation;
- switch (map->getNorthOrientation()) {
+ switch (map->getMapOptions().northOrientation()) {
case NO::Upwards: map->setNorthOrientation(NO::Rightwards); break;
case NO::Rightwards: map->setNorthOrientation(NO::Downwards); break;
case NO::Downwards: map->setNorthOrientation(NO::Leftwards); break;