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

RegionChooser: Commenting some debug code

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