From a133ac719855a05e07d5c42b9bc0236b25f9cd5a Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Tue, 27 May 2025 10:10:22 -0700 Subject: [PATCH] app: Ensure points and lines are above polygons in tile view --- app/src/PageTile.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/PageTile.tsx b/app/src/PageTile.tsx index 9b07b3f..f3ce02b 100644 --- a/app/src/PageTile.tsx +++ b/app/src/PageTile.tsx @@ -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 }); }