forked from MapComplete/MapComplete
Fix: redraw line layers on background change
This commit is contained in:
parent
a83499614d
commit
6e5fcdef20
7 changed files with 281 additions and 306 deletions
|
@ -421,6 +421,7 @@ export class MapLibreAdaptor implements MapProperties, ExportableMap {
|
|||
map.addSource(background.id, MapLibreAdaptor.prepareWmsSource(background))
|
||||
}
|
||||
if (!map.getLayer(background.id)) {
|
||||
console.log("Adding background layer", background.id, "beforeId", addLayerBeforeId,"; all layers are", map.getStyle().layers.map(l => l.id))
|
||||
map.addLayer(
|
||||
{
|
||||
id: background.id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue