diff options
Diffstat (limited to 'src/mbgl/style/sources')
-rw-r--r-- | src/mbgl/style/sources/geojson_source.cpp | 15 | ||||
-rw-r--r-- | src/mbgl/style/sources/geojson_source.hpp | 18 | ||||
-rw-r--r-- | src/mbgl/style/sources/raster_source.cpp | 15 | ||||
-rw-r--r-- | src/mbgl/style/sources/raster_source.hpp | 18 | ||||
-rw-r--r-- | src/mbgl/style/sources/vector_source.cpp | 15 | ||||
-rw-r--r-- | src/mbgl/style/sources/vector_source.hpp | 18 |
6 files changed, 99 insertions, 0 deletions
diff --git a/src/mbgl/style/sources/geojson_source.cpp b/src/mbgl/style/sources/geojson_source.cpp new file mode 100644 index 0000000000..785c8a3eb0 --- /dev/null +++ b/src/mbgl/style/sources/geojson_source.cpp @@ -0,0 +1,15 @@ +#include <mbgl/style/sources/geojson_source.hpp> + +namespace mbgl { +namespace style { + +GeoJSONSource::GeoJSONSource(std::string id_, + std::string url_, + uint16_t tileSize_, + std::unique_ptr<Tileset>&& tileset_, + std::unique_ptr<mapbox::geojsonvt::GeoJSONVT>&& geojsonvt_) + : Source(SourceType::GeoJSON, std::move(id_), std::move(url_), tileSize_, std::move(tileset_), std::move(geojsonvt_)) { +} + +} // namespace style +} // namespace mbgl diff --git a/src/mbgl/style/sources/geojson_source.hpp b/src/mbgl/style/sources/geojson_source.hpp new file mode 100644 index 0000000000..d9f8cb4c62 --- /dev/null +++ b/src/mbgl/style/sources/geojson_source.hpp @@ -0,0 +1,18 @@ +#pragma once + +#include <mbgl/style/source.hpp> + +namespace mbgl { +namespace style { + +class GeoJSONSource : public Source { +public: + GeoJSONSource(std::string id, + std::string url, + uint16_t tileSize, + std::unique_ptr<Tileset>&&, + std::unique_ptr<mapbox::geojsonvt::GeoJSONVT>&&); +}; + +} // namespace style +} // namespace mbgl diff --git a/src/mbgl/style/sources/raster_source.cpp b/src/mbgl/style/sources/raster_source.cpp new file mode 100644 index 0000000000..d0f525894a --- /dev/null +++ b/src/mbgl/style/sources/raster_source.cpp @@ -0,0 +1,15 @@ +#include <mbgl/style/sources/raster_source.hpp> + +namespace mbgl { +namespace style { + +RasterSource::RasterSource(std::string id_, + std::string url_, + uint16_t tileSize_, + std::unique_ptr<Tileset>&& tileset_, + std::unique_ptr<mapbox::geojsonvt::GeoJSONVT>&& geojsonvt_) + : Source(SourceType::Raster, std::move(id_), std::move(url_), tileSize_, std::move(tileset_), std::move(geojsonvt_)) { +} + +} // namespace style +} // namespace mbgl diff --git a/src/mbgl/style/sources/raster_source.hpp b/src/mbgl/style/sources/raster_source.hpp new file mode 100644 index 0000000000..1b04865464 --- /dev/null +++ b/src/mbgl/style/sources/raster_source.hpp @@ -0,0 +1,18 @@ +#pragma once + +#include <mbgl/style/source.hpp> + +namespace mbgl { +namespace style { + +class RasterSource : public Source { +public: + RasterSource(std::string id, + std::string url, + uint16_t tileSize, + std::unique_ptr<Tileset>&&, + std::unique_ptr<mapbox::geojsonvt::GeoJSONVT>&&); +}; + +} // namespace style +} // namespace mbgl diff --git a/src/mbgl/style/sources/vector_source.cpp b/src/mbgl/style/sources/vector_source.cpp new file mode 100644 index 0000000000..6cbb667c40 --- /dev/null +++ b/src/mbgl/style/sources/vector_source.cpp @@ -0,0 +1,15 @@ +#include <mbgl/style/sources/vector_source.hpp> + +namespace mbgl { +namespace style { + +VectorSource::VectorSource(std::string id_, + std::string url_, + uint16_t tileSize_, + std::unique_ptr<Tileset>&& tileset_, + std::unique_ptr<mapbox::geojsonvt::GeoJSONVT>&& geojsonvt_) + : Source(SourceType::Vector, std::move(id_), std::move(url_), tileSize_, std::move(tileset_), std::move(geojsonvt_)) { +} + +} // namespace style +} // namespace mbgl diff --git a/src/mbgl/style/sources/vector_source.hpp b/src/mbgl/style/sources/vector_source.hpp new file mode 100644 index 0000000000..e3a14a7531 --- /dev/null +++ b/src/mbgl/style/sources/vector_source.hpp @@ -0,0 +1,18 @@ +#pragma once + +#include <mbgl/style/source.hpp> + +namespace mbgl { +namespace style { + +class VectorSource : public Source { +public: + VectorSource(std::string id, + std::string url, + uint16_t tileSize, + std::unique_ptr<Tileset>&&, + std::unique_ptr<mapbox::geojsonvt::GeoJSONVT>&&); +}; + +} // namespace style +} // namespace mbgl |