mirror of
https://github.com/cfpwastaken/planetiler-openmaptiles.git
synced 2026-02-04 12:31:10 +00:00
Fix oneway logic (#70)
This commit is contained in:
@@ -527,7 +527,7 @@ public class Transportation implements
|
||||
int onewayId = 1;
|
||||
for (var item : items) {
|
||||
var oneway = item.attrs().get(Fields.ONEWAY);
|
||||
if (oneway instanceof Integer i && ONEWAY_VALUES.contains(i)) {
|
||||
if (oneway instanceof Number n && ONEWAY_VALUES.contains(n.intValue())) {
|
||||
item.attrs().put(LIMIT_MERGE_TAG, onewayId++);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user