Commit 5fc7827a authored by duminil's avatar duminil
Browse files

RegionChooser: Trying to grasp async JS and JavaFX.

parent 526c3971
...@@ -90,7 +90,6 @@ public void jobStatusChanged(JobStatusEvent event) { ...@@ -90,7 +90,6 @@ public void jobStatusChanged(JobStatusEvent event) {
novaFactoryOpenLayer.call("updateStatus", "DOWNLOADED AS ZIP"); novaFactoryOpenLayer.call("updateStatus", "DOWNLOADED AS ZIP");
novaFactoryOpenLayer.call("selectSaveFile", file.toString()); novaFactoryOpenLayer.call("selectSaveFile", file.toString());
// System.out.println("CityGML at " + file.getAbsolutePath()); // System.out.println("CityGML at " + file.getAbsolutePath());
System.out.println("STILL HERE");
//TODO: Call downloadFinished if FAILED //TODO: Call downloadFinished if FAILED
novaFactoryOpenLayer.call("downloadFinished"); novaFactoryOpenLayer.call("downloadFinished");
} catch (FailedTransmissionException ex) { } catch (FailedTransmissionException ex) {
......
...@@ -287,10 +287,11 @@ $('#reset').click(function() { ...@@ -287,10 +287,11 @@ $('#reset').click(function() {
novafactory_layer.downloadFinished = function() { novafactory_layer.downloadFinished = function() {
// FIXME: Weird <br>s are inserted between lines // FIXME: Weird <br>s are inserted between lines
dataPanel.append("NovaFactory : DONE <br/>\n");
this.disabled = false;
// FIXME: Doesn't stop waiting cursor // FIXME: Doesn't stop waiting cursor
$("html").removeClass("wait"); $("html").removeClass("wait");
setTimeout(function() {
dataPanel.append("NovaFactory : DONE <br/>\n");
}, 100);
}; };
novafactory_layer.updateStatus = function(status) { novafactory_layer.updateStatus = function(status) {
...@@ -307,10 +308,6 @@ function downloadRegionFromNovaFACTORY(i) { ...@@ -307,10 +308,6 @@ function downloadRegionFromNovaFACTORY(i) {
// Waiting 100ms in order to let the cursor change // Waiting 100ms in order to let the cursor change
setTimeout(function() { setTimeout(function() {
fxapp.downloadRegion(sketchAsWKT('4326'), feature.get('name'), novafactory_layer); fxapp.downloadRegion(sketchAsWKT('4326'), feature.get('name'), novafactory_layer);
setTimeout(function() {
$("html").removeClass("wait");
dataPanel.append("Done<br/>\n");
}, 100);
}, 100); }, 100);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment