overlays below traces

This commit is contained in:
vcoppe
2024-05-08 21:51:52 +02:00
parent f8056cee73
commit 510edcf344
2 changed files with 26 additions and 12 deletions

View File

@@ -100,6 +100,17 @@
newMap.on('style.load', toggleTerrain);
newMap.on('pitch', toggleTerrain);
newMap.on('style.load', () => {
// add dummy layer to place the overlay layers below
newMap.addLayer({
id: 'overlays',
type: 'background',
paint: {
'background-color': 'rgba(0, 0, 0, 0)'
}
});
});
});
$: if ($map) {