Add options for Custom Geometry Source types to enable clipping and wrapping geometry (#11041)

This commit is contained in:
Asheem Mamoowala
2018-02-07 12:07:31 -08:00
committed by GitHub
parent e03f7a4d1f
commit 6c5e457590
9 changed files with 101 additions and 7 deletions

View File

@@ -39,7 +39,7 @@ 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).features;
featureData = mapbox::geojsonvt::geoJSONToTile(geoJSON, id.canonical.z, id.canonical.x, id.canonical.y, vtOptions, options.wrap, options.clip).features;
} else {
setNecessity(TileNecessity::Optional);
}