forked from MapComplete/MapComplete
Themes: move generated themes into assets, remove known_themes, support pruning of borrowed icons
This commit is contained in:
parent
310b973846
commit
ee64d84d27
18 changed files with 431 additions and 400 deletions
|
|
@ -7,12 +7,9 @@ export class AllSharedLayers {
|
|||
public static sharedLayers: Map<string, LayerConfig> = AllSharedLayers.getSharedLayers()
|
||||
public static getSharedLayersConfigs(): Map<string, LayerConfigJson> {
|
||||
const sharedLayers = new Map<string, LayerConfigJson>()
|
||||
for (const layer of (known_layers).layers) {
|
||||
for (const layer of known_layers["layers"]) {
|
||||
if(layer.id === undefined){
|
||||
console.error("Layer without id! "+JSON.stringify(layer).slice(0,80), known_layers.layers.length)
|
||||
continue
|
||||
}else{
|
||||
console.log("Loaded",layer.id)
|
||||
}
|
||||
sharedLayers.set(layer.id, <any> layer)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue