forked from MapComplete/MapComplete
Themes: improve 'auto-type' special visualisation
This commit is contained in:
parent
c291b16406
commit
658db35617
7 changed files with 140 additions and 165 deletions
|
@ -346,7 +346,7 @@ export default class LayerConfig extends WithContextLoader {
|
|||
this.popupInFloatover = json.popupInFloatover ?? false
|
||||
}
|
||||
|
||||
public defaultIcon(): BaseUIElement | undefined {
|
||||
public defaultIcon(properties?: Record<string, string>): BaseUIElement | undefined {
|
||||
if (this.mapRendering === undefined || this.mapRendering === null) {
|
||||
return undefined
|
||||
}
|
||||
|
@ -354,7 +354,7 @@ export default class LayerConfig extends WithContextLoader {
|
|||
if (mapRendering === undefined) {
|
||||
return undefined
|
||||
}
|
||||
return mapRendering.GetBaseIcon(this.GetBaseTags())
|
||||
return mapRendering.GetBaseIcon(properties ?? this.GetBaseTags())
|
||||
}
|
||||
|
||||
public GetBaseTags(): Record<string, string> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue