Port bicycle cafés to JSON-defined-layer
This commit is contained in:
parent
3653c3ecaa
commit
0c2f662040
17 changed files with 229 additions and 276 deletions
|
@ -47,6 +47,10 @@ export class AllKnownLayouts {
|
|||
let layer = layout.layers[i];
|
||||
if (typeof (layer) === "string") {
|
||||
layer = layout.layers[i] = FromJSON.sharedLayers.get(layer);
|
||||
if(layer === undefined){
|
||||
console.log("Defined layers are ", FromJSON.sharedLayers.keys())
|
||||
throw `Layer ${layer} was not found or defined - probably a type was made`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue