forked from MapComplete/MapComplete
Fix: add correct attribution for maptiler bg layer
This commit is contained in:
parent
82093ffdf4
commit
c90b334678
3 changed files with 25 additions and 10 deletions
|
@ -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)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue