Merge pull request #1150 from pietervdvn/feature/station-map

Station map
This commit is contained in:
Pieter Vander Vennet 2022-12-08 17:44:55 +01:00 committed by GitHub
commit e8ff43312f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 1854 additions and 2 deletions

View file

@ -215,6 +215,7 @@ export default class LayerConfig extends WithContextLoader {
this.minzoomVisible = json.minzoomVisible ?? this.minzoom
this.shownByDefault = json.shownByDefault ?? true
this.forceLoad = json.forceLoad ?? false
if (json.presets === null) json.presets = undefined
if (json.presets !== undefined && json.presets?.map === undefined) {
throw "Presets should be a list of items (at " + context + ")"
}