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

Slowly trying to replace jquery

parent 7ea7f80a
......@@ -14,7 +14,7 @@ var regionChooser = (function(){
}
if (fromJavaFX){
$("html").addClass("wait");
document.documentElement.className = 'wait';
}
var osm_layer = new ol.layer.Tile({
......@@ -226,7 +226,7 @@ var regionChooser = (function(){
setTimeout(function() {
var start = new Date().getTime();
if (proj4.defs(srsName)){
$("html").addClass("wait");
document.documentElement.className = 'wait';
console.log("Selected region is written in " + srsName + " coordinate system.");
try {
fxapp.downloadRegionFromCityGMLs(sketchAsWKT(srsName), project, citygmlNames.join(";"), srsName);
......@@ -239,7 +239,7 @@ var regionChooser = (function(){
var time = end - start;
console.log('Download Execution time: ' + (time / 1000).toFixed(3) + 's');
setTimeout(function() {
$("html").removeClass("wait");
document.documentElement.className = ''; // Stop waiting
}, 100);
} else {
var msg = "ERROR : Unknown coordinate system : \"" + srsName + "\". Cannot extract any region";
......@@ -295,7 +295,7 @@ var regionChooser = (function(){
draw.finishDrawing();
} finally {
displayHelp();
$("html").removeClass("wait");
document.documentElement.className = ''; // Stop waiting
draw.setActive(true);
featureOverlay.getFeatures().clear();
intersections.clear();
......@@ -313,7 +313,7 @@ var regionChooser = (function(){
}
function focusOnMap() {
$('#map').focus();
document.getElementById("map").focus();
}
var fxapp = undefined;
......@@ -346,13 +346,16 @@ var regionChooser = (function(){
dataPanel.append("After drawing a polygon which intersects with at least one GML file,<br>\n");
dataPanel.append("you can download the corresponding part by checking the<br>\n");
dataPanel.append("desired filenames and clicking on 'Download' button.<br>\n");
dataPanel.append("<br>\n");
dataPanel.append("More info is available in the ");
dataPanel.append("<a href='http://simstadt.hft-stuttgart.de/related-softwares/region-chooser/'>SimStadt documentation</a><br>\n");
}
// Executed by JavaFX when whole page is loaded.
publicScope.ready = function() {
updateGMLPolygons();
displayHelp();
$("html").removeClass("wait");
document.documentElement.className = ''; // Stop waiting
console.log("READY!");
}
......
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