Feature: add Americana background style, fix #1204

This commit is contained in:
Pieter Vander Vennet 2023-06-14 00:47:09 +02:00
parent 6f5c71ed5a
commit d465a272f2
3 changed files with 26 additions and 1 deletions

View file

@ -379,6 +379,12 @@ export class MapLibreAdaptor implements MapProperties, ExportableMap {
return
}
if(background.type === "vector"){
console.log("Background layer is vector")
map.setStyle(background.url)
return
}
map.addSource(background.id, MapLibreAdaptor.prepareWmsSource(background))
map.resize()