[core] Remove file source from public Map ctor
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
#include <mbgl/map/map_options.hpp>
|
||||
#include <mbgl/util/constants.hpp>
|
||||
|
||||
#include <cassert>
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
@@ -10,9 +7,6 @@ public:
|
||||
MapMode mapMode = MapMode::Continuous;
|
||||
ConstrainMode constrainMode = ConstrainMode::HeightOnly;
|
||||
ViewportMode viewportMode = ViewportMode::Default;
|
||||
std::string cachePath;
|
||||
std::string assetRoot;
|
||||
uint64_t maximumSize{mbgl::util::DEFAULT_MAX_CACHE_SIZE};
|
||||
bool crossSourceCollisions = true;
|
||||
};
|
||||
|
||||
@@ -46,33 +40,6 @@ ViewportMode MapOptions::viewportMode() const {
|
||||
return impl_->viewportMode;
|
||||
}
|
||||
|
||||
MapOptions& MapOptions::withCachePath(std::string path) {
|
||||
impl_->cachePath = std::move(path);
|
||||
return *this;
|
||||
}
|
||||
|
||||
const std::string& MapOptions::cachePath() const {
|
||||
return impl_->cachePath;
|
||||
}
|
||||
|
||||
MapOptions& MapOptions::withAssetRoot(std::string path) {
|
||||
impl_->assetRoot = std::move(path);
|
||||
return *this;
|
||||
}
|
||||
|
||||
const std::string& MapOptions::assetRoot() const {
|
||||
return impl_->assetRoot;
|
||||
}
|
||||
|
||||
MapOptions& MapOptions::withMaximumCacheSize(uint64_t size) {
|
||||
impl_->maximumSize = size;
|
||||
return *this;
|
||||
}
|
||||
|
||||
uint64_t MapOptions::maximumCacheSize() const {
|
||||
return impl_->maximumSize;
|
||||
}
|
||||
|
||||
MapOptions& MapOptions::withCrossSourceCollisions(bool enableCollisions) {
|
||||
impl_->crossSourceCollisions = enableCollisions;
|
||||
return *this;
|
||||
|
||||
Reference in New Issue
Block a user