Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eric Duminil
RegionChooser
Commits
35144651
Commit
35144651
authored
Oct 14, 2022
by
Eric Duminil
Browse files
No need for id
parent
3ab3caa8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
View file @
35144651
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment