Skip to content

Commit 4c93313

Browse files
committed
fix #200 generalize boundaries line features
1 parent 22c4da8 commit 4c93313

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tiles/src/main/java/com/protomaps/basemap/layers/Boundaries.java

+7-2
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,15 @@ public List<OsmRelationInfo> preprocessOsmRelation(OsmElement.Relation relation)
276276

277277
@Override
278278
public List<VectorTile.Feature> postProcess(int zoom, List<VectorTile.Feature> items) {
279+
var tolerance = 0.4;
280+
if( zoom < 6 ) {
281+
tolerance = 0.2;
282+
}
279283
return FeatureMerge.mergeLineStrings(items,
280284
0.0,
281-
0.1,
282-
4
285+
tolerance,
286+
4,
287+
true
283288
);
284289
}
285290

0 commit comments

Comments
 (0)