summaryrefslogtreecommitdiff
path: root/include/mbgl/map/map_options.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/map/map_options.hpp')
-rw-r--r--include/mbgl/map/map_options.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/mbgl/map/map_options.hpp b/include/mbgl/map/map_options.hpp
index 8d5c12b96c..508d569ea5 100644
--- a/include/mbgl/map/map_options.hpp
+++ b/include/mbgl/map/map_options.hpp
@@ -2,6 +2,7 @@
#include <mbgl/map/mode.hpp>
#include <mbgl/util/geo.hpp>
+#include <mbgl/util/size.hpp>
#include <memory>
@@ -103,6 +104,21 @@ public:
*/
NorthOrientation northOrientation() const;
+ /**
+ * @brief Sets the size to resize the map object and renderer backend.
+ *
+ * @param size_ A size given in logical pixels.
+ * @return reference to MapOptions for chaining options together.
+ */
+ MapOptions& withSize(Size size_);
+
+ /**
+ * @brief Gets the previously set size.
+ *
+ * @return Size.
+ */
+ Size size() const;
+
private:
class Impl;
std::unique_ptr<Impl> impl_;