Fix various bugs; improve UK-addresses theme

This commit is contained in:
Pieter Vander Vennet 2022-01-17 21:33:03 +01:00
parent e20cf0abfa
commit 8ca9e4f36c
20 changed files with 357 additions and 164 deletions

View file

@ -67,6 +67,10 @@ export default class LayerConfig extends WithContextLoader {
context = context + "." + json.id;
super(json, context)
this.id = json.id;
if(json.id === undefined){
throw "Not a valid layer: id is undefined: "+JSON.stringify(json)
}
if (json.source === undefined) {
throw "Layer " + this.id + " does not define a source section (" + context + ")"