From 11afef7825d622a237fa026e45e6d61b4de94068 Mon Sep 17 00:00:00 2001 From: Sudarsana Babu Nagineni Date: Mon, 25 Mar 2019 23:39:31 +0200 Subject: [core] Add interface to change the orientation through MapOptions --- platform/glfw/glfw_view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/glfw/glfw_view.cpp') 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; -- cgit v1.2.1