Commit 4527f190 authored by duminil's avatar duminil
Browse files

RegionChooser: Commenting some debug code

parent 0f1c41b0
...@@ -248,11 +248,11 @@ function downloadRegionFromCityGML(i) { ...@@ -248,11 +248,11 @@ function downloadRegionFromCityGML(i) {
var feature = kml_source.getFeatures()[i]; var feature = kml_source.getFeatures()[i];
// Waiting 100ms in order to let the cursor change // Waiting 100ms in order to let the cursor change
setTimeout(function() { setTimeout(function() {
var start = new Date().getTime(); // var start = new Date().getTime();
fxapp.downloadRegionFromCityGML(sketchAsWKT(), feature.get("project"), feature.get("name"), vectorSource); fxapp.downloadRegionFromCityGML(sketchAsWKT(), feature.get("project"), feature.get("name"), vectorSource);
var end = new Date().getTime(); // var end = new Date().getTime();
var time = end - start; // var time = end - start;
console.log('DL Execution time: ' + time); // console.log('DL Execution time: ' + time);
setTimeout(function() { setTimeout(function() {
$("html").removeClass("wait"); $("html").removeClass("wait");
dataPanel.append("Done<br/>\n"); dataPanel.append("Done<br/>\n");
...@@ -261,7 +261,7 @@ function downloadRegionFromCityGML(i) { ...@@ -261,7 +261,7 @@ function downloadRegionFromCityGML(i) {
} }
function displayInfo() { function displayInfo() {
var start = new Date().getTime(); // var start = new Date().getTime();
dataPanel.empty(); dataPanel.empty();
var geom = /** @type {ol.geom.Polygon} */ var geom = /** @type {ol.geom.Polygon} */
(sketch.getGeometry().clone().transform(sourceProj, 'EPSG:4326')); (sketch.getGeometry().clone().transform(sourceProj, 'EPSG:4326'));
...@@ -289,9 +289,9 @@ function displayInfo() { ...@@ -289,9 +289,9 @@ function displayInfo() {
dataPanel.append("Area" + "<br/>\n"); dataPanel.append("Area" + "<br/>\n");
dataPanel.append((Math.round(area / 1000) / 10).toString() + " ha<br/><br/>\n"); dataPanel.append((Math.round(area / 1000) / 10).toString() + " ha<br/><br/>\n");
findIntersections(); findIntersections();
var end = new Date().getTime(); // var end = new Date().getTime();
var time = end - start; // var time = end - start;
console.log('Execution time: ' + time); // console.log('Execution time: ' + time);
} }
draw.on('drawend', function(e) { draw.on('drawend', function(e) {
......
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