Fix: remove 'icons.defaults' from favourite layers, cleanup of various small typing errors

This commit is contained in:
Pieter Vander Vennet 2023-12-08 00:12:21 +01:00
parent 98ca6aa8aa
commit e8569ec540
7 changed files with 37 additions and 26 deletions

View file

@ -1,4 +1,5 @@
import {
Bypass,
Concat,
Conversion,
DesugaringContext,
@ -1252,6 +1253,10 @@ export class AddRatingBadge extends DesugaringStep<LayerConfigJson> {
// already added
return json
}
if (json.id === "favourite") {
// handled separately
return json
}
const specialVis: Exclude<RenderingSpecification, string>[] = <
Exclude<RenderingSpecification, string>[]
@ -1266,6 +1271,7 @@ export class AddRatingBadge extends DesugaringStep<LayerConfigJson> {
return json
}
}
export class AutoTitleIcon extends DesugaringStep<LayerConfigJson> {
constructor() {
super(