Fix: add correct attribution for maptiler bg layer

This commit is contained in:
Pieter Vander Vennet 2023-05-18 15:56:24 +02:00
parent 82093ffdf4
commit c90b334678
3 changed files with 25 additions and 10 deletions

View file

@ -39,6 +39,9 @@ export default class BackgroundLayerResetter {
availableLayers,
currentBgPolygon?.properties?.category
)
if(!availableInSameCat){
return
}
console.log("Selecting a different layer:", availableInSameCat.properties.id)
currentBackgroundLayer.setData(availableInSameCat)
})