From 667f0fd90bb8e82acda73ba33e95e133aacb97cd Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Mon, 2 Jun 2025 11:33:21 -0400 Subject: [PATCH] app: Ensure points and lines are above polygons in tile view (#577) * 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..9c01fba 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 }); }