summaryrefslogtreecommitdiff
path: root/src/mbgl/style/sources/image_source_impl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/style/sources/image_source_impl.hpp')
-rw-r--r--src/mbgl/style/sources/image_source_impl.hpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/mbgl/style/sources/image_source_impl.hpp b/src/mbgl/style/sources/image_source_impl.hpp
new file mode 100644
index 0000000000..439db4fa64
--- /dev/null
+++ b/src/mbgl/style/sources/image_source_impl.hpp
@@ -0,0 +1,31 @@
+#pragma once
+
+#include <mbgl/style/source_impl.hpp>
+#include <mbgl/style/sources/image_source.hpp>
+#include <mbgl/util/image.hpp>
+
+namespace mbgl {
+class LatLng;
+
+namespace style {
+
+class ImageSource::Impl : public Source::Impl {
+public:
+ Impl(std::string id, std::vector<LatLng> coords);
+ Impl(const Impl& rhs, std::vector<LatLng> coords);
+ Impl(const Impl& rhs, UnassociatedImage image);
+
+ ~Impl() final;
+
+ void setImage(UnassociatedImage );
+ const mbgl::UnassociatedImage& getImage() const;
+ std::vector<LatLng> getCoordinates() const;
+
+ optional<std::string> getAttribution() const final;
+private:
+ std::vector<LatLng> coords;
+ mbgl::UnassociatedImage image;
+};
+
+} // namespace style
+} // namespace mbgl