LayerServer: add opt-out to get counted for some irrelevant layers, remove some obsolete 'cluster' information

This commit is contained in:
Pieter Vander Vennet 2024-02-22 01:39:42 +01:00
parent 7c5170da15
commit 426128e141
14 changed files with 210 additions and 263 deletions

View file

@ -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) {