forked from MapComplete/MapComplete
LayerServer: add opt-out to get counted for some irrelevant layers, remove some obsolete 'cluster' information
This commit is contained in:
parent
7c5170da15
commit
426128e141
14 changed files with 210 additions and 263 deletions
|
@ -53,6 +53,7 @@ export default class LayerConfig extends WithContextLoader {
|
|||
public readonly allowMove: MoveConfig | null
|
||||
public readonly allowSplit: boolean
|
||||
public readonly shownByDefault: boolean
|
||||
public readonly doCount: boolean
|
||||
/**
|
||||
* In seconds
|
||||
*/
|
||||
|
@ -158,6 +159,7 @@ export default class LayerConfig extends WithContextLoader {
|
|||
}
|
||||
this.minzoomVisible = json.minzoomVisible ?? this.minzoom
|
||||
this.shownByDefault = json.shownByDefault ?? true
|
||||
this.doCount = json.isCounted ?? true
|
||||
this.forceLoad = json.forceLoad ?? false
|
||||
if (json.presets === null) json.presets = undefined
|
||||
if (json.presets !== undefined && json.presets?.map === undefined) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue