diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-06-14 10:44:26 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-06-14 11:25:45 -0700 |
commit | cf7420a3c9ff4b0b3b79bade045cec59bf465990 (patch) | |
tree | 6fd0f9f1a8ccc467488637b6d30a2e7188dd7314 /src/mbgl/style/sources | |
parent | 2a991c6846bc6742abd618ec750bd2f01a13b75e (diff) | |
download | qtlocation-mapboxgl-cf7420a3c9ff4b0b3b79bade045cec59bf465990.tar.gz |
[core] Push Source::geojsonvt down to GeoJSONSource
Diffstat (limited to 'src/mbgl/style/sources')
-rw-r--r-- | src/mbgl/style/sources/geojson_source.cpp | 4 | ||||
-rw-r--r-- | src/mbgl/style/sources/geojson_source.hpp | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/mbgl/style/sources/geojson_source.cpp b/src/mbgl/style/sources/geojson_source.cpp index 6ece894e2e..42e0d71985 100644 --- a/src/mbgl/style/sources/geojson_source.cpp +++ b/src/mbgl/style/sources/geojson_source.cpp @@ -18,8 +18,8 @@ GeoJSONSource::GeoJSONSource(std::string id_, 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_)) { - geojsonvt = std::move(geojsonvt_); + : Source(SourceType::GeoJSON, std::move(id_), std::move(url_), tileSize_, std::move(tileset_)), + geojsonvt(std::move(geojsonvt_)) { } void GeoJSONSource::load(FileSource& fileSource) { diff --git a/src/mbgl/style/sources/geojson_source.hpp b/src/mbgl/style/sources/geojson_source.hpp index 47984ff9da..670eb26964 100644 --- a/src/mbgl/style/sources/geojson_source.hpp +++ b/src/mbgl/style/sources/geojson_source.hpp @@ -2,6 +2,12 @@ #include <mbgl/style/source.hpp> +namespace mapbox { +namespace geojsonvt { +class GeoJSONVT; +} // namespace geojsonvt +} // namespace mapbox + namespace mbgl { namespace style { @@ -17,6 +23,8 @@ public: private: std::unique_ptr<Tile> createTile(const OverscaledTileID&, const UpdateParameters&) final; + + std::unique_ptr<mapbox::geojsonvt::GeoJSONVT> geojsonvt; }; } // namespace style |