summaryrefslogtreecommitdiff
path: root/src/mbgl/style/sources
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2017-03-20 17:32:06 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2017-03-20 18:25:04 +0200
commit24198ebca86cbe1329a1854f080e3f4638973142 (patch)
tree43447ee32faff421349706b8251d10d90fc9bc2b /src/mbgl/style/sources
parentf846205eb68e9508a0d80259008cf9adb8069a1b (diff)
downloadqtlocation-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.cpp2
-rw-r--r--src/mbgl/style/sources/geojson_source_impl.hpp3
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;