summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-09-08 13:49:48 -0700
committerAsheem Mamoowala <asheem.mamoowala@mapbox.com>2017-09-28 15:47:21 -0700
commit8fae8a16452a5ae17f424d1720a0aea75d0ac33a (patch)
treeeba9051d4f5c9d7ebacbf608a4183ee151c10a92 /src
parent64c75b442c4d387e4867757abf49462c561e5955 (diff)
downloadqtlocation-mapboxgl-8fae8a16452a5ae17f424d1720a0aea75d0ac33a.tar.gz
[core] Add minzoom to GeoJSONOptions
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/style/sources/geojson_source_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/style/sources/geojson_source_impl.cpp b/src/mbgl/style/sources/geojson_source_impl.cpp
index efa4018b46..fd6d7d3013 100644
--- a/src/mbgl/style/sources/geojson_source_impl.cpp
+++ b/src/mbgl/style/sources/geojson_source_impl.cpp
@@ -71,7 +71,7 @@ GeoJSONSource::Impl::Impl(const Impl& other, const GeoJSON& geoJSON)
GeoJSONSource::Impl::~Impl() = default;
Range<uint8_t> GeoJSONSource::Impl::getZoomRange() const {
- return { 0, options.maxzoom };
+ return { options.minzoom, options.maxzoom };
}
GeoJSONData* GeoJSONSource::Impl::getData() const {