Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
msbarry committed Nov 27, 2024
1 parent b3e3701 commit 11ba103
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,9 @@ public void accept(FeatureCollector.Feature feature) {
} else {
if (minSize > 0) {
if (geometry instanceof Puntal) {
if (!feature.source().isPoint()) {
double size = feature.getSourceFeaturePixelSizeAtZoom(zoom);
if (size < minSize) {
// don't emit points if the source feature it came from was too small
continue;
}
if (!feature.source().isPoint() && feature.getSourceFeaturePixelSizeAtZoom(zoom) < minSize) {
// don't emit points if the line or polygon feature it came from was too small
continue;
}
} else if (simpleLineLength >= 0 && simpleLineLength * scale * 256 < minSize) {
// skip processing lines that are too short
Expand Down

0 comments on commit 11ba103

Please sign in to comment.