forked from MapComplete/MapComplete
Fixes to wayhandling
This commit is contained in:
parent
032bf89017
commit
813e96f8df
4 changed files with 17 additions and 16 deletions
|
@ -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}">`);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue