forked from MapComplete/MapComplete
Merge pull request #1150 from pietervdvn/feature/station-map
Station map
This commit is contained in:
commit
e8ff43312f
36 changed files with 1854 additions and 2 deletions
|
@ -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 + ")"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue