summaryrefslogtreecommitdiff
path: root/include/mbgl/sourcemanager/geojson_source_factory.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/sourcemanager/geojson_source_factory.hpp')
-rw-r--r--include/mbgl/sourcemanager/geojson_source_factory.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/mbgl/sourcemanager/geojson_source_factory.hpp b/include/mbgl/sourcemanager/geojson_source_factory.hpp
new file mode 100644
index 0000000000..be6e64a6bc
--- /dev/null
+++ b/include/mbgl/sourcemanager/geojson_source_factory.hpp
@@ -0,0 +1,16 @@
+#pragma once
+
+#include <mbgl/sourcemanager/source_factory.hpp>
+
+namespace mbgl {
+
+class GeoJSONSourceFactory : public SourceFactory {
+protected:
+ const style::SourceTypeInfo* getTypeInfo() const noexcept final;
+ std::unique_ptr<style::Source> createSource(const std::string& id,
+ const style::conversion::Convertible& value,
+ style::conversion::Error&) noexcept final;
+ std::unique_ptr<RenderSource> createRenderSource(Immutable<style::Source::Impl>) noexcept final;
+};
+
+} // namespace mbgl