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
5fc7827a
Commit
5fc7827a
authored
May 29, 2015
by
duminil
Browse files
RegionChooser: Trying to grasp async JS and JavaFX.
parent
526c3971
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/eu/simstadt/nf4j/ExportJobFromJavaFXRegionChooser.java
View file @
5fc7827a
...
...
@@ -90,7 +90,6 @@ public void jobStatusChanged(JobStatusEvent event) {
novaFactoryOpenLayer
.
call
(
"updateStatus"
,
"DOWNLOADED AS ZIP"
);
novaFactoryOpenLayer
.
call
(
"selectSaveFile"
,
file
.
toString
());
// System.out.println("CityGML at " + file.getAbsolutePath());
System
.
out
.
println
(
"STILL HERE"
);
//TODO: Call downloadFinished if FAILED
novaFactoryOpenLayer
.
call
(
"downloadFinished"
);
}
catch
(
FailedTransmissionException
ex
)
{
...
...
website/script/simstadt_openlayers.js
View file @
5fc7827a
...
...
@@ -287,10 +287,11 @@ $('#reset').click(function() {
novafactory_layer
.
downloadFinished
=
function
()
{
// FIXME: Weird <br>s are inserted between lines
dataPanel
.
append
(
"
NovaFactory : DONE <br/>
\n
"
);
this
.
disabled
=
false
;
// FIXME: Doesn't stop waiting cursor
$
(
"
html
"
).
removeClass
(
"
wait
"
);
setTimeout
(
function
()
{
dataPanel
.
append
(
"
NovaFactory : DONE <br/>
\n
"
);
},
100
);
};
novafactory_layer
.
updateStatus
=
function
(
status
)
{
...
...
@@ -307,10 +308,6 @@ function downloadRegionFromNovaFACTORY(i) {
// Waiting 100ms in order to let the cursor change
setTimeout
(
function
()
{
fxapp
.
downloadRegion
(
sketchAsWKT
(
'
4326
'
),
feature
.
get
(
'
name
'
),
novafactory_layer
);
setTimeout
(
function
()
{
$
(
"
html
"
).
removeClass
(
"
wait
"
);
dataPanel
.
append
(
"
Done<br/>
\n
"
);
},
100
);
},
100
);
}
...
...
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