summaryrefslogtreecommitdiff
path: root/src/mbgl/map/map_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/map/map_impl.cpp')
-rw-r--r--src/mbgl/map/map_impl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mbgl/map/map_impl.cpp b/src/mbgl/map/map_impl.cpp
index 15caa34af4..572e1440e8 100644
--- a/src/mbgl/map/map_impl.cpp
+++ b/src/mbgl/map/map_impl.cpp
@@ -8,21 +8,21 @@ namespace mbgl {
Map::Impl::Impl(Map& map_,
RendererFrontend& frontend,
MapObserver& mapObserver,
- FileSource& fileSource_,
Size size_,
float pixelRatio_,
MapMode mode_,
ViewportMode viewportMode_,
- bool crossSourceCollisions_)
+ bool crossSourceCollisions_,
+ const FileSourceOptions& fileSourceOptions)
: map(map_),
observer(mapObserver),
rendererFrontend(frontend),
- fileSource(fileSource_),
+ fileSource(platform::Factory::sharedFileSource(fileSourceOptions)),
transform(observer, viewportMode_),
mode(mode_),
pixelRatio(pixelRatio_),
crossSourceCollisions(crossSourceCollisions_),
- style(std::make_unique<style::Style>(fileSource, pixelRatio)),
+ style(std::make_unique<style::Style>(pixelRatio, fileSourceOptions)),
annotationManager(*style) {
style->impl->setObserver(this);