diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-03-20 17:32:06 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-03-20 18:25:04 +0200 |
commit | 24198ebca86cbe1329a1854f080e3f4638973142 (patch) | |
tree | 43447ee32faff421349706b8251d10d90fc9bc2b /src/mbgl/style/sources | |
parent | f846205eb68e9508a0d80259008cf9adb8069a1b (diff) | |
download | qtlocation-mapboxgl-24198ebca86cbe1329a1854f080e3f4638973142.tar.gz |
[core] Expose Source::getZoomRange
Diffstat (limited to 'src/mbgl/style/sources')
-rw-r--r-- | src/mbgl/style/sources/geojson_source_impl.cpp | 2 | ||||
-rw-r--r-- | src/mbgl/style/sources/geojson_source_impl.hpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/mbgl/style/sources/geojson_source_impl.cpp b/src/mbgl/style/sources/geojson_source_impl.cpp index c7c3753076..5ceb4f71e0 100644 --- a/src/mbgl/style/sources/geojson_source_impl.cpp +++ b/src/mbgl/style/sources/geojson_source_impl.cpp @@ -153,7 +153,7 @@ void GeoJSONSource::Impl::loadDescription(FileSource& fileSource) { }); } -Range<uint8_t> GeoJSONSource::Impl::getZoomRange() { +Range<uint8_t> GeoJSONSource::Impl::getZoomRange() const { assert(loaded); return { 0, options.maxzoom }; } diff --git a/src/mbgl/style/sources/geojson_source_impl.hpp b/src/mbgl/style/sources/geojson_source_impl.hpp index eec7cf0605..05302d6bc0 100644 --- a/src/mbgl/style/sources/geojson_source_impl.hpp +++ b/src/mbgl/style/sources/geojson_source_impl.hpp @@ -28,10 +28,11 @@ public: return util::tileSize; } + Range<uint8_t> getZoomRange() const final; + private: void _setGeoJSON(const GeoJSON&); - Range<uint8_t> getZoomRange() final; std::unique_ptr<Tile> createTile(const OverscaledTileID&, const UpdateParameters&) final; GeoJSONOptions options; |