Fix error processing way (#87)

This commit is contained in:
Michael Barry
2023-04-14 05:55:09 -04:00
committed by GitHub
parent d96c612841
commit 6317d82ec9
3 changed files with 43 additions and 1 deletions

View File

@@ -253,6 +253,9 @@ public class TransportationName implements
// inherit min zoom threshold from visible road, and ensure we never show a label on a road that's not visible yet.
minzoom = Math.max(minzoom, transportation.getMinzoom(element, highwayClass));
if (minzoom > config.maxzoom()) {
return;
}
FeatureCollector.Feature feature = features.line(LAYER_NAME)
.setBufferPixels(BUFFER_SIZE)