summaryrefslogtreecommitdiff
path: root/platform/default/mbgl/map/map_snapshotter.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/default/mbgl/map/map_snapshotter.hpp')
-rw-r--r--platform/default/mbgl/map/map_snapshotter.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/platform/default/mbgl/map/map_snapshotter.hpp b/platform/default/mbgl/map/map_snapshotter.hpp
index 0afa848fd8..2450fa7612 100644
--- a/platform/default/mbgl/map/map_snapshotter.hpp
+++ b/platform/default/mbgl/map/map_snapshotter.hpp
@@ -5,6 +5,7 @@
#include <mbgl/util/optional.hpp>
#include <exception>
+#include <memory>
#include <string>
#include <functional>
@@ -16,6 +17,10 @@ class FileSource;
class Size;
class LatLngBounds;
+namespace style {
+class Style;
+} // namespace style
+
class MapSnapshotter {
public:
MapSnapshotter(FileSource& fileSource,
@@ -29,6 +34,18 @@ public:
~MapSnapshotter();
+ 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 Callback = std::function<void (std::exception_ptr, PremultipliedImage)>;
void snapshot(ActorRef<Callback>);