Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
10 years ago
by
duminil
Browse files
Options
Download
Email Patches
Plain Diff
RegionChooser: Commenting some debug code
parent
0f1c41b0
master
develop
migrate_to_Java11
0.2.2
0.1.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
website/script/simstadt_openlayers.js
+8
-8
website/script/simstadt_openlayers.js
with
8 additions
and
8 deletions
+8
-8
website/script/simstadt_openlayers.js
+
8
-
8
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
)
{
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets