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 22, 2018
1 parent 78fdf5c commit 357d5bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mbgl/tile/custom_geometry_tile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ void CustomGeometryTile::setTileData(const GeoJSON& geoJSON) {
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;
setData(std::make_unique<GeoJSONTileData>(std::move(featureData)));
} else {
setNecessity(TileNecessity::Optional);
loaded = true;
renderable = true;
}
setData(std::make_unique<GeoJSONTileData>(std::move(featureData)));
}

void CustomGeometryTile::invalidateTileData() {
Expand Down

0 comments on commit 357d5bb

Please sign in to comment.