Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
2 years ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
No need for id
parent
3ab3caa8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
+6
-6
...stadt/regionchooser/website/script/simstadt_openlayers.js
with
6 additions
and
6 deletions
+6
-6
src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
+
6
-
6
View file @
35144651
...
@@ -161,23 +161,23 @@ const regionChooser = (function(){
...
@@ -161,23 +161,23 @@ const regionChooser = (function(){
li
.
onmouseover
=
function
(){
regionChooser
.
highlightPolygon
(
this
.
feature
)
};
li
.
onmouseover
=
function
(){
regionChooser
.
highlightPolygon
(
this
.
feature
)
};
li
.
onmouseout
=
function
(){
regionChooser
.
resetHighlight
(
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
.
type
=
'
checkbox
'
checkbox
.
id
=
"
citygml_
"
+
feature
.
getId
();
checkbox
.
className
=
"
select_citygml
"
;
checkbox
.
className
=
"
select_citygml
"
;
checkbox
.
feature
=
feature
;
checkbox
.
feature
=
feature
;
checkbox
.
setAttribute
(
'
onclick
'
,
"
regionChooser.isDownloadPossible()
"
);
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
+
"
%
"
;
text
+=
"
(
"
+
citygml_percentage
+
"
%
"
;
if
(
sketch_percentage
==
100
)
{
if
(
sketch_percentage
==
100
)
{
text
+=
"
, all inside
"
;
text
+=
"
, all inside
"
;
}
}
label
.
textContent
=
text
+
"
)
\n
"
;
label
.
textContent
=
text
+
"
)
\n
"
;
label
.
prepend
(
checkbox
);
dataPanel
[
0
].
appendChild
(
li
);
dataPanel
[
0
].
appendChild
(
li
);
}
}
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets