Fix: probably fix black area outlines

This commit is contained in:
Pieter Vander Vennet 2023-10-06 02:23:24 +02:00
parent 6e5fcdef20
commit 0bd9e1e667
3 changed files with 9 additions and 8 deletions

View file

@ -417,6 +417,7 @@ export class MapLibreAdaptor implements MapProperties, ExportableMap {
if (!map.getLayer(addLayerBeforeId)) {
addLayerBeforeId = undefined
}
await this.awaitStyleIsLoaded()
if (!map.getSource(background.id)) {
map.addSource(background.id, MapLibreAdaptor.prepareWmsSource(background))
}