mirror of
https://github.com/cfpwastaken/planetiler-openmaptiles.git
synced 2026-02-04 04:21:08 +00:00
Optimize tile sizes (#112)
This commit is contained in:
@@ -178,7 +178,10 @@ public class Building implements
|
||||
@Override
|
||||
public List<VectorTile.Feature> postProcess(int zoom,
|
||||
List<VectorTile.Feature> items) throws GeometryException {
|
||||
return (mergeZ13Buildings && zoom == 13) ? FeatureMerge.mergeNearbyPolygons(items, 4, 4, 0.5, 0.5) : items;
|
||||
return (mergeZ13Buildings && zoom == 13) ?
|
||||
FeatureMerge.mergeNearbyPolygons(items, 4, 4, 0.5, 0.5) :
|
||||
// reduces the size of some heavy z14 tiles with many small buildings by 60% or more
|
||||
FeatureMerge.mergeMultiPolygon(items);
|
||||
}
|
||||
|
||||
private record BuildingRelationInfo(long id) implements OsmRelationInfo {
|
||||
|
||||
Reference in New Issue
Block a user