diff options
author | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2018-05-21 17:17:53 -0700 |
---|---|---|
committer | Chris Loer <chris.loer@mapbox.com> | 2018-05-24 14:01:21 -0400 |
commit | b1f696155e2ff18e6d76c8f74eafadc7ee59cf71 (patch) | |
tree | 451c9cfa82bb77318006ee8f828cebf9d7c76cd7 /src | |
parent | 47ff2b84d143759a1cff3e1cccefca84a23947dc (diff) | |
download | qtlocation-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.cpp | 6 |
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))); } |