[core] Add setter/getter for size property in MapOptions

This commit is contained in:
Sudarsana Babu Nagineni
2019-03-26 00:00:37 +02:00
parent 11afef7825
commit 1cc1d4ea08
28 changed files with 102 additions and 85 deletions

View File

@@ -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