diff options
Diffstat (limited to 'include/mbgl/map/map_options.hpp')
-rw-r--r-- | include/mbgl/map/map_options.hpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/mbgl/map/map_options.hpp b/include/mbgl/map/map_options.hpp index 617a2d793a..8d5c12b96c 100644 --- a/include/mbgl/map/map_options.hpp +++ b/include/mbgl/map/map_options.hpp @@ -1,6 +1,7 @@ #pragma once #include <mbgl/map/mode.hpp> +#include <mbgl/util/geo.hpp> #include <memory> @@ -86,6 +87,22 @@ public: */ bool crossSourceCollisions() const; + /** + * @brief Sets the orientation of the Map. By default, it is set to + * Upwards. + * + * @param orientation Orientation of the Map. + * @return reference to MapOptions for chaining options together. + */ + MapOptions& withNorthOrientation(NorthOrientation orientation); + + /** + * @brief Gets the previously set (or default) orientation. + * + * @return Map orientation. + */ + NorthOrientation northOrientation() const; + private: class Impl; std::unique_ptr<Impl> impl_; |