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

Set Tile loaded/rendered instead of marking tile as optional. #11985

Merged
merged 1 commit into from
May 24, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Set Tile loaded/rendered instead of marking tile as optional.
  • Loading branch information
Asheem Mamoowala committed May 23, 2018
commit 4d75ef6094e82f62232a8d6db5eb4a4900523f94
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