mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
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:
@@ -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 });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user