Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Set Tile loaded/rendered instead of marking tile as optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
Asheem Mamoowala committed May 23, 2018
1 parent 78fdf5c commit 4d75ef6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mbgl/tile/custom_geometry_tile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}
Expand Down

0 comments on commit 4d75ef6

Please sign in to comment.