diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-03-07 23:24:52 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-03-08 18:37:41 +0200 |
commit | 2144e3f3b0b8f08b65c854225d7360847633f689 (patch) | |
tree | 16cadc63b1c3d438c5ddd4bf67aadb2e72e23130 /src/mbgl/map/map_impl.cpp | |
parent | 2f88e8257b83b77f6c06c86c99f542976e7d5199 (diff) | |
download | qtlocation-mapboxgl-upstream/map-refactor.tar.gz |
[core] Implement platform::Factory::sharedFileSource()upstream/map-refactor
Diffstat (limited to 'src/mbgl/map/map_impl.cpp')
-rw-r--r-- | src/mbgl/map/map_impl.cpp | 8 |
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); |