Commit c1c38a9b authored by Eric Duminil's avatar Eric Duminil
Browse files

No refresh, it might look too weird.

parent 5c6ace0f
Showing with 4 additions and 7 deletions
+4 -7
...@@ -95,8 +95,6 @@ public void downloadRegionFromCityGMLs(String wktPolygon, String project, String ...@@ -95,8 +95,6 @@ public void downloadRegionFromCityGMLs(String wktPolygon, String project, String
} }
} }
} }
refreshHulls();
} }
public void selectRepository() { public void selectRepository() {
......
...@@ -226,12 +226,12 @@ var regionChooser = (function(){ ...@@ -226,12 +226,12 @@ var regionChooser = (function(){
var srsName = features[0].get("srsName"); var srsName = features[0].get("srsName");
if (!features.every( f => f.get("project") === project)){ if (!features.every( f => f.get("project") === project)){
dataPanel.append("<h2 class='error'>Sorry, the CityGML files should all belong to the same project.</h2><br/>\n"); dataPanel.prepend("<h2 class='error'>Sorry, the CityGML files should all belong to the same project.</h2><br/>\n");
return; return;
} }
if (!features.every( f => f.get("srsName") === srsName)){ if (!features.every( f => f.get("srsName") === srsName)){
dataPanel.append("<h2 class='error'>Sorry, the CityGML files should all be written with the same coordinate system.</h2><br/>\n"); dataPanel.prepend("<h2 class='error'>Sorry, the CityGML files should all be written with the same coordinate system.</h2><br/>\n");
} }
var citygmlNames = features.map(f => f.get("name")); var citygmlNames = features.map(f => f.get("name"));
...@@ -243,16 +243,15 @@ var regionChooser = (function(){ ...@@ -243,16 +243,15 @@ var regionChooser = (function(){
console.log("Selected region is written in " + srsName + " coordinate system."); console.log("Selected region is written in " + srsName + " coordinate system.");
try { try {
fxapp.downloadRegionFromCityGMLs(sketchAsWKT(srsName), project, citygmlNames.join(";"), srsName); fxapp.downloadRegionFromCityGMLs(sketchAsWKT(srsName), project, citygmlNames.join(";"), srsName);
dataPanel.append("<h2 class='ok'>Done!</h2><br/>\n"); dataPanel.prepend("<h2 class='ok'>Done!</h2><br/>\n");
} catch (e) { } catch (e) {
console.warning("ERROR : " + e); console.warning("ERROR : " + e);
dataPanel.append("<h2 class='error'>Some problem occured!</h2><br/>\n"); dataPanel.prepend("<h2 class='error'>Some problem occured!</h2><br/>\n");
} }
var end = new Date().getTime(); var end = new Date().getTime();
var time = end - start; var time = end - start;
console.log('Download Execution time: ' + (time / 1000).toFixed(3) + 's'); console.log('Download Execution time: ' + (time / 1000).toFixed(3) + 's');
setTimeout(function() { setTimeout(function() {
resetDrawing();
document.getElementById("download_region_button").disabled = false; document.getElementById("download_region_button").disabled = false;
document.documentElement.className = ''; // Stop waiting document.documentElement.className = ''; // Stop waiting
}, 100); }, 100);
......
Supports Markdown
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