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
2f951dcb
Commit
2f951dcb
authored
Oct 14, 2022
by
Eric Duminil
Browse files
rename
parent
83bcdc05
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
View file @
2f951dcb
...
...
@@ -284,8 +284,8 @@ var regionChooser = (function(){
dataPanel
.
append
(
"
<h3 class='clean'>Area :
"
+
(
area
/
10000
).
toFixed
(
1
)
+
"
ha
\n
"
);
dataPanel
.
append
(
'
<div style="visibility:hidden" id="download_region">
'
+
'
<button type="button" onclick="regionChooser.downloadFromSelectedCityGMLs()" id="download_region_button" disabled>Download Region</button><br/>
\n
'
+
'
<a href="#" onclick="regionChooser.
checkCityGMLS
(true);">(Select All)</a>
\n
'
+
'
<a href="#" onclick="regionChooser.
checkCityGMLS
(false);">(Select None)</a>
\n
'
+
'
<a href="#" onclick="regionChooser.
selectAllOrNone
(true);">(Select All)</a>
\n
'
+
'
<a href="#" onclick="regionChooser.
selectAllOrNone
(false);">(Select None)</a>
\n
'
+
'
</div>
\n
'
);
findIntersections
();
dataPanel
.
append
(
'
<button type="button" onclick="regionChooser.copyCoordinatesToClipboard()" id="get_wgs84">Copy coordinates</button><br/>
\n
'
)
...
...
@@ -384,7 +384,7 @@ var regionChooser = (function(){
publicScope
.
downloadRegionFromCityGMLs
(
checkedBoxes
.
map
(
c
=>
c
.
id
));
}
publicScope
.
checkCityGMLS
=
function
(
allOrNone
)
{
publicScope
.
selectAllOrNone
=
function
(
allOrNone
)
{
document
.
querySelectorAll
(
"
input.select_citygml
"
).
forEach
(
c
=>
c
.
checked
=
allOrNone
);
publicScope
.
isDownloadPossible
();
}
...
...
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