forked from MapComplete/MapComplete
Feature: add Americana background style, fix #1204
This commit is contained in:
parent
6f5c71ed5a
commit
d465a272f2
3 changed files with 26 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue