added icons to enabled layers
This commit is contained in:
parent
0e3d9d930b
commit
c56c076ab3
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
import { UIElement } from "./UIElement";
|
||||
import { FilteredLayer } from "../Logic/FilteredLayer";
|
||||
import { CheckBox } from "./Base/CheckBox";
|
||||
import Combine from "./Base/Combine";
|
||||
|
||||
export class LayerSelection extends UIElement{
|
||||
|
||||
|
@ -10,7 +11,10 @@ export class LayerSelection extends UIElement{
|
|||
super(undefined);
|
||||
this._checkboxes = [];
|
||||
for (const layer of layers) {
|
||||
this._checkboxes.push(new CheckBox(layer.isDisplayed, `isEnabled ${layer.layerDef.name}`, `isDisabled ${layer.layerDef.name}`));
|
||||
this._checkboxes.push(new CheckBox(
|
||||
layer.isDisplayed,
|
||||
new Combine([layer.layerDef.name, `<img src="${layer.layerDef.icon}" alt="${layer.layerDef.icon}">`]),
|
||||
layer.layerDef.name));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue