Fix rainbox theme and add improvements

This commit is contained in:
Pieter Vander Vennet 2022-07-12 10:23:45 +02:00
parent f0df09d0cb
commit 441d8467fe
8 changed files with 135 additions and 18 deletions

View file

@ -191,6 +191,9 @@ export default class LayerConfig extends WithContextLoader {
this.doNotDownload = json.doNotDownload ?? false;
this.passAllFeatures = json.passAllFeatures ?? false;
this.minzoom = json.minzoom ?? 0;
if(json["minZoom"] !== undefined){
throw "At "+context+": minzoom is written all lowercase"
}
this.minzoomVisible = json.minzoomVisible ?? this.minzoom;
this.shownByDefault = json.shownByDefault ?? true;
this.forceLoad = json.forceLoad ?? false;