diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-03-19 16:57:36 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-03-20 21:30:08 +0200 |
commit | d5868d3da822f2bf3297229bd879e76853108a63 (patch) | |
tree | b3d28aab92b938cf541f917f1027d2bbd06d9780 /test/src | |
parent | d1762d7111b39d45430bd7bb75ea60b7a5d85bd2 (diff) | |
download | qtlocation-mapboxgl-d5868d3da822f2bf3297229bd879e76853108a63.tar.gz |
[core] Remove file source from public Map ctor
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/mbgl/test/map_adapter.hpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/src/mbgl/test/map_adapter.hpp b/test/src/mbgl/test/map_adapter.hpp new file mode 100644 index 0000000000..e0fc449f48 --- /dev/null +++ b/test/src/mbgl/test/map_adapter.hpp @@ -0,0 +1,23 @@ +#pragma once + +#include <mbgl/map/map.hpp> +#include <mbgl/map/map_impl.hpp> + +namespace mbgl { + +class FileSource; + +// Non-public version of mbgl::Map that accepts a file source as parameter. +class MapAdapter : public Map { +public: + explicit MapAdapter(RendererFrontend& frontend, + MapObserver& observer, + Size size, + float ratio, + std::shared_ptr<FileSource> fileSource, + Scheduler& scheduler, + const MapOptions& options) + : Map(std::make_unique<Map::Impl>(frontend, observer, scheduler, size, ratio, std::move(fileSource), options)) {} +}; + +} // namespace mbgl |