summaryrefslogtreecommitdiff
path: root/src/mbgl/style/sources/vector_source.cpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-06-13 11:38:18 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-06-14 11:25:45 -0700
commit9b0093e32dece62abc6fd7add789613871252a58 (patch)
treed6e8f90b12d64c41d4f95d9433e2dfca58be4f60 /src/mbgl/style/sources/vector_source.cpp
parent7080196bf6b749de5f25b298c0acf49cced20b1e (diff)
downloadqtlocation-mapboxgl-9b0093e32dece62abc6fd7add789613871252a58.tar.gz
[core] Introduce source subclasses
Diffstat (limited to 'src/mbgl/style/sources/vector_source.cpp')
-rw-r--r--src/mbgl/style/sources/vector_source.cpp15
1 files changed, 15 insertions, 0 deletions
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