Fix rotation attribute, small fixes to hackerspace theme

This commit is contained in:
Pieter Vander Vennet 2021-11-04 22:34:22 +01:00
parent d3de5475cd
commit be3ac93eca
4 changed files with 2 additions and 19 deletions

View file

@ -132,7 +132,7 @@ export default class PointRenderingConfig extends WithContextLoader {
return undefined; return undefined;
} }
return new VariableUiElement(tags.map(tags => { return new VariableUiElement(tags.map(tags => {
const rotation = self.rotation?.GetRenderValue(tags)?.txt ?? "0deg" const rotation = Utils.SubstituteKeys(self.rotation?.GetRenderValue(tags)?.txt ?? "0deg", tags)
const htmlDefs = Utils.SubstituteKeys(self.icon.GetRenderValue(tags)?.txt, tags) const htmlDefs = Utils.SubstituteKeys(self.icon.GetRenderValue(tags)?.txt, tags)
let defaultPin : BaseUIElement = undefined let defaultPin : BaseUIElement = undefined

View file

@ -224,10 +224,7 @@
"hackerspace=makerspace" "hackerspace=makerspace"
] ]
}, },
"then": { "then": "./assets/themes/hackerspaces/led.png"
"en": "./assets/themes/hackerspaces/led.png",
"de": "./assets/themes/hackerspaces/led.png"
}
} }
] ]
}, },

View file

@ -769,13 +769,6 @@
"layers": { "layers": {
"0": { "0": {
"description": "Hackerspace", "description": "Hackerspace",
"icon": {
"mappings": {
"0": {
"then": "./assets/themes/hackerspaces/led.png"
}
}
},
"name": "Hackerspace", "name": "Hackerspace",
"presets": { "presets": {
"0": { "0": {

View file

@ -809,13 +809,6 @@
"layers": { "layers": {
"0": { "0": {
"description": "Hackerspace", "description": "Hackerspace",
"icon": {
"mappings": {
"0": {
"then": "./assets/themes/hackerspaces/led.png"
}
}
},
"name": "Hackerspace", "name": "Hackerspace",
"presets": { "presets": {
"0": { "0": {