diff options
Diffstat (limited to 'platform/default/mbgl/map/map_snapshotter.hpp')
-rw-r--r-- | platform/default/mbgl/map/map_snapshotter.hpp | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/platform/default/mbgl/map/map_snapshotter.hpp b/platform/default/mbgl/map/map_snapshotter.hpp index 0afa848fd8..985396e5a3 100644 --- a/platform/default/mbgl/map/map_snapshotter.hpp +++ b/platform/default/mbgl/map/map_snapshotter.hpp @@ -3,9 +3,12 @@ #include <mbgl/util/image.hpp> #include <mbgl/util/thread.hpp> #include <mbgl/util/optional.hpp> +#include <mbgl/util/geo.hpp> #include <exception> +#include <memory> #include <string> +#include <vector> #include <functional> namespace mbgl { @@ -16,6 +19,10 @@ class FileSource; class Size; class LatLngBounds; +namespace style { +class Style; +} // namespace style + class MapSnapshotter { public: MapSnapshotter(FileSource& fileSource, @@ -29,7 +36,21 @@ public: ~MapSnapshotter(); - using Callback = std::function<void (std::exception_ptr, PremultipliedImage)>; + void setStyleURL(const std::string& styleURL); + std::string getStyleURL() const; + + void setSize(const Size&); + Size getSize() const; + + void setCameraOptions(const CameraOptions&); + CameraOptions getCameraOptions() const; + + void setRegion(const LatLngBounds&); + LatLngBounds getRegion() const; + + using PointForFn = std::function<ScreenCoordinate (const LatLng&)>; + using Attributions = std::vector<std::string>; + using Callback = std::function<void (std::exception_ptr, PremultipliedImage, Attributions, PointForFn)>; void snapshot(ActorRef<Callback>); private: |