app: Ensure points and lines are above polygons in tile view (#577)

* app: Ensure points and lines are above polygons in tile view
This commit is contained in:
Brandon Liu
2025-06-02 11:33:21 -04:00
committed by GitHub
parent 9e10aeb24b
commit 667f0fd90b

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 });
}