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,

View file

@ -515,7 +515,7 @@ export default class ShowDataLayer {
const l = new LineRenderingLayer(
map,
features,
"mapcomplete_"+this._options.layer.id + "_linerendering_" + i,
"mapcomplete_" + this._options.layer.id + "_linerendering_" + i,
lineRenderingConfig,
doShowLayer,
fetchStore,