diff options
Diffstat (limited to 'src/mbgl/map/map_options.cpp')
-rw-r--r-- | src/mbgl/map/map_options.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mbgl/map/map_options.cpp b/src/mbgl/map/map_options.cpp index b4ad38ac7f..98cabb2550 100644 --- a/src/mbgl/map/map_options.cpp +++ b/src/mbgl/map/map_options.cpp @@ -9,6 +9,7 @@ public: ViewportMode viewportMode = ViewportMode::Default; NorthOrientation orientation = NorthOrientation::Upwards; bool crossSourceCollisions = true; + Size size; }; // These requires the complete type of Impl. @@ -61,4 +62,13 @@ NorthOrientation MapOptions::northOrientation() const { return impl_->orientation; } +MapOptions& MapOptions::withSize(Size size_) { + impl_->size = size_; + return *this; +} + +Size MapOptions::size() const { + return impl_->size; +} + } // namespace mbgl |