summaryrefslogtreecommitdiff
path: root/src/mbgl/style/sources
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-06-13 14:45:22 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-06-14 11:25:45 -0700
commit6eab895bc0683881f793a3a751fa7470603ae9a0 (patch)
tree5e1b231702bb1c93e6a0c8823500a6e6980b0970 /src/mbgl/style/sources
parent615a6685a47609310930890203f41815a5f19d48 (diff)
downloadqtlocation-mapboxgl-6eab895bc0683881f793a3a751fa7470603ae9a0.tar.gz
[core] Use Range<uint8_t> instead of full Tileset where possible
Diffstat (limited to 'src/mbgl/style/sources')
-rw-r--r--src/mbgl/style/sources/geojson_source.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/style/sources/geojson_source.cpp b/src/mbgl/style/sources/geojson_source.cpp
index d0a11ec0bc..d720e38e51 100644
--- a/src/mbgl/style/sources/geojson_source.cpp
+++ b/src/mbgl/style/sources/geojson_source.cpp
@@ -53,7 +53,7 @@ std::unique_ptr<GeoJSONSource> GeoJSONSource::parse(const std::string& id,
} else if (dataVal.IsObject()) {
// We need to parse dataVal as a GeoJSON object
geojsonvt = parseGeoJSON(dataVal);
- tileset->maxZoom = geojsonvt->options.maxZoom;
+ tileset->zoomRange.max = geojsonvt->options.maxZoom;
} else {
Log::Error(Event::ParseStyle, "GeoJSON data must be a URL or an object");
return nullptr;
@@ -104,7 +104,7 @@ void GeoJSONSource::load(FileSource& fileSource) {
}
geojsonvt = style::parseGeoJSON(d);
- newTileset->maxZoom = geojsonvt->options.maxZoom;
+ newTileset->zoomRange.max = geojsonvt->options.maxZoom;
invalidateTiles();