Fixes to wayhandling

This commit is contained in:
Pieter Vander Vennet 2020-10-27 14:46:40 +01:00
parent 032bf89017
commit 813e96f8df
4 changed files with 17 additions and 16 deletions

View file

@ -16,10 +16,8 @@ export class LayerSelection extends UIElement {
for (const layer of State.state.filteredLayers.data) {
let iconUrl = "./asets/checkbox.svg";
let iconUrlBlank = "";
if (layer.layerDef.icon && layer.layerDef.icon !== "") {
iconUrl = layer.layerDef.icon as string;
iconUrlBlank = layer.layerDef.icon as string;
if (layer.layerDef.icon ) {
iconUrl = layer.layerDef.icon.GetRenderValue({id:"node/-1"}).txt;
}
const icon = new FixedUiElement(`<img style="height:2em;max-width: 2em;" src="${iconUrl}">`);