Chore: housekeeping

This commit is contained in:
Pieter Vander Vennet 2023-10-10 01:52:02 +02:00
parent 95f4dc859a
commit 0bdb35a016
42 changed files with 2792 additions and 839 deletions

View file

@ -422,7 +422,9 @@ export class MapLibreAdaptor implements MapProperties, ExportableMap {
map.addSource(background.id, MapLibreAdaptor.prepareWmsSource(background))
}
if (!map.getLayer(background.id)) {
addLayerBeforeId ??= map.getStyle().layers.find(l => l.id.startsWith("mapcomplete_"))?.id
addLayerBeforeId ??= map
.getStyle()
.layers.find((l) => l.id.startsWith("mapcomplete_"))?.id
console.log(
"Adding background layer",
background.id,