Fix various bugs; improve UK-addresses theme
This commit is contained in:
parent
e20cf0abfa
commit
8ca9e4f36c
20 changed files with 357 additions and 164 deletions
|
@ -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 + ")"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue