Commit 35144651 authored by Eric Duminil's avatar Eric Duminil
Browse files

No need for id

parent 3ab3caa8
......@@ -161,23 +161,23 @@ const regionChooser = (function(){
li.onmouseover = function(){ regionChooser.highlightPolygon(this.feature) };
li.onmouseout = function(){ regionChooser.resetHighlight(this.feature) };
let checkbox = li.appendChild(document.createElement('input'));
let label = li.appendChild(document.createElement('label'));
var text = feature.name;
let checkbox = document.createElement('input');
checkbox.type = 'checkbox'
checkbox.id = "citygml_" + feature.getId();
checkbox.className = "select_citygml";
checkbox.feature = feature;
checkbox.setAttribute('onclick', "regionChooser.isDownloadPossible()");
let label = li.appendChild(document.createElement('label'));
label.setAttribute('for', "citygml_" + feature.getId());
var text = feature.name;
text += " (" + citygml_percentage + "%";
if (sketch_percentage == 100) {
text += ", all inside";
}
label.textContent = text + ")\n";
label.prepend(checkbox);
dataPanel[0].appendChild(li);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment