diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-06-14 10:57:43 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-06-14 11:25:45 -0700 |
commit | 5bbcca832660f80c42e8bfdb5d1836ea8113bb19 (patch) | |
tree | 08f46011d920f7abd4c86e16f2040df2355cfdb1 /src/mbgl/style/sources | |
parent | 9d3c4fbbb05d37802ebc15210b041392b4d48f15 (diff) | |
download | qtlocation-mapboxgl-5bbcca832660f80c42e8bfdb5d1836ea8113bb19.tar.gz |
[core] Add virtual Source::getTileSize()
Diffstat (limited to 'src/mbgl/style/sources')
-rw-r--r-- | src/mbgl/style/sources/geojson_source.cpp | 2 | ||||
-rw-r--r-- | src/mbgl/style/sources/geojson_source.hpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/style/sources/geojson_source.cpp b/src/mbgl/style/sources/geojson_source.cpp index 7daf148291..01089f2eec 100644 --- a/src/mbgl/style/sources/geojson_source.cpp +++ b/src/mbgl/style/sources/geojson_source.cpp @@ -63,7 +63,7 @@ std::unique_ptr<GeoJSONSource> GeoJSONSource::parse(const std::string& id, GeoJSONSource::GeoJSONSource(std::string id_, std::string url_, std::unique_ptr<mapbox::geojsonvt::GeoJSONVT>&& geojsonvt_) - : Source(SourceType::GeoJSON, std::move(id_), util::tileSize), + : Source(SourceType::GeoJSON, std::move(id_)), url(url_), geojsonvt(std::move(geojsonvt_)) { } diff --git a/src/mbgl/style/sources/geojson_source.hpp b/src/mbgl/style/sources/geojson_source.hpp index 996dac3aca..00d245c878 100644 --- a/src/mbgl/style/sources/geojson_source.hpp +++ b/src/mbgl/style/sources/geojson_source.hpp @@ -31,6 +31,7 @@ public: const std::string& getURL() const { return url; } private: + uint16_t getTileSize() const final { return util::tileSize; } Range<uint8_t> getZoomRange() final; std::unique_ptr<Tile> createTile(const OverscaledTileID&, const UpdateParameters&) final; |