[core] Add setter/getter for size property in MapOptions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user