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
2f951dcb
Commit
2f951dcb
authored
2 years ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
rename
parent
83bcdc05
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
+3
-3
...stadt/regionchooser/website/script/simstadt_openlayers.js
with
3 additions
and
3 deletions
+3
-3
src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
+
3
-
3
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
();
}
...
...
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