fix non-integer layer tag causing invisible features (#9933)

This commit is contained in:
Kyℓe Hensel
2025-01-15 21:35:18 +11:00
committed by GitHub
parent d1b48ece73
commit fb8b969c3f
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -247,7 +247,7 @@ export function svgLines(projection, context) {
}
ways = ways.filter(getPath);
var pathdata = utilArrayGroupBy(ways, function(way) { return way.layer(); });
const pathdata = utilArrayGroupBy(ways, (way) => Math.trunc(way.layer()));
Object.keys(pathdata).forEach(function(k) {
var v = pathdata[k];