Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eric Duminil
RegionChooser
Commits
4527f190
Commit
4527f190
authored
May 27, 2015
by
duminil
Browse files
RegionChooser: Commenting some debug code
parent
0f1c41b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/script/simstadt_openlayers.js
View file @
4527f190
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment