summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAsheem Mamoowala <asheem.mamoowala@mapbox.com>2018-05-21 17:17:53 -0700
committerChris Loer <chris.loer@mapbox.com>2018-05-24 14:01:21 -0400
commitb1f696155e2ff18e6d76c8f74eafadc7ee59cf71 (patch)
tree451c9cfa82bb77318006ee8f828cebf9d7c76cd7 /src
parent47ff2b84d143759a1cff3e1cccefca84a23947dc (diff)
downloadqtlocation-mapboxgl-b1f696155e2ff18e6d76c8f74eafadc7ee59cf71.tar.gz
Set Tile loaded/rendered instead of marking tile as optional.
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/tile/custom_geometry_tile.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mbgl/tile/custom_geometry_tile.cpp b/src/mbgl/tile/custom_geometry_tile.cpp
index 272a1594d4..24f3526184 100644
--- a/src/mbgl/tile/custom_geometry_tile.cpp
+++ b/src/mbgl/tile/custom_geometry_tile.cpp
@@ -38,9 +38,9 @@ void CustomGeometryTile::setTileData(const GeoJSON& geoJSON) {
vtOptions.extent = util::EXTENT;
vtOptions.buffer = ::round(scale * options.buffer);
vtOptions.tolerance = scale * options.tolerance;
- featureData = mapbox::geojsonvt::geoJSONToTile(geoJSON, id.canonical.z, id.canonical.x, id.canonical.y, vtOptions, options.wrap, options.clip).features;
- } else {
- setNecessity(TileNecessity::Optional);
+ featureData = mapbox::geojsonvt::geoJSONToTile(geoJSON,
+ id.canonical.z, id.canonical.x, id.canonical.y,
+ vtOptions, options.wrap, options.clip).features;
}
setData(std::make_unique<GeoJSONTileData>(std::move(featureData)));
}