app: Ensure points and lines are above polygons in tile view

This commit is contained in:
Brandon Liu
2025-05-27 10:10:22 -07:00
parent 9e10aeb24b
commit a133ac7198

View File

@@ -85,6 +85,9 @@ function parseTile(data: ArrayBuffer, vectorLayers: string[]): Layer[] {
}); });
} }
// sort so that points and linestrings are above polygons
features.sort((a,b) => a.type > b.type ? -1 : 1);
layers.push({ name: name, features: features }); layers.push({ name: name, features: features });
} }