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
Alfakhori
M4labplatform
Commits
87f6184f
Commit
87f6184f
authored
2 years ago
by
patri
Browse files
Options
Download
Email Patches
Plain Diff
update
parent
c6118269
master
1 merge request
!1
update some ui
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vcm/index.html
+6
-1
vcm/index.html
vcm/js/cityplanning.js
+50
-5
vcm/js/cityplanning.js
with
56 additions
and
6 deletions
+56
-6
vcm/index.html
+
6
-
1
View file @
87f6184f
...
...
@@ -405,7 +405,12 @@
<br>
<p>
Wachstum kann über einen Slider gezeigt werden:
</p><br>
<div
id =
"slider-step"
></div><br>
<div
id=
"slider-step-value"
></div><br>
<div
id=
"slider-step-value"
></div>
<div
class=
"contain-buttons"
>
<button
id=
'startButton0001'
onclick=
"sliderautoMove()"
>
Start
</button>
<button
id=
'stopButton'
onclick=
"sliderautoMoveStop()"
>
Stop
</button>
<button
id=
'resetButton0001'
onclick=
"sliderautoMoveReset()"
>
Reset
</button>
</div>
</div>
<button
id=
"men_acoustic"
onclick=
"akkustikview()"
type=
"button"
class=
"collapsible"
>
Akustik
</button>
...
...
This diff is collapsed.
Click to expand it.
vcm/js/cityplanning.js
+
50
-
5
View file @
87f6184f
...
...
@@ -31,7 +31,7 @@ function BuildingAGE() {
}
layer2
=
layers
[
layerIndexRosenstein
];
var
layer2
=
layers
[
layerIndexRosenstein
];
var
tileset
=
layer2
.
cesium3DTileset
;
if
(
tileset
)
{
tileset
.
style
=
new
Cesium
.
Cesium3DTileStyle
({
...
...
@@ -108,6 +108,9 @@ stepSlider.noUiSlider.on('update', function (values, handle) {
});
function
BuildingAGEdynamic
(
age
)
{
screenspaceErr
(
true
)
var
Framework
=
vcs
.
vcm
.
Framework
.
getInstance
();
...
...
@@ -125,7 +128,7 @@ function BuildingAGEdynamic(age) {
}
layer2
=
layers
[
layerIndexRosenstein
];
var
layer2
=
layers
[
layerIndexRosenstein
];
var
tileset
=
layer2
.
cesium3DTileset
;
if
(
tileset
)
{
tileset
.
style
=
new
Cesium
.
Cesium3DTileStyle
({
...
...
@@ -169,15 +172,57 @@ function screenspaceErr(tf) {
}
layer2
=
layers
[
layerIndexRosenstein
];
if
(
tf
==
true
){
var
layer2
=
layers
[
layerIndexRosenstein
];
if
(
layer2
==
undefined
){
}
else
{
if
(
tf
==
true
){
layer2
.
screenSpaceErrorMobile
=
1
layer2
.
screenSpaceError
=
1
}
else
{
layer2
.
screenSpaceErrorMobile
=
32
layer2
.
screenSpaceError
=
16
}
}
}
\ No newline at end of file
}
var
stopvar
=
false
function
sliderautoMoveStop
(){
stopvar
=
true
}
let
stoptheAuto
=
document
.
getElementById
(
'
stopButton
'
);
function
sliderautoMove
()
{
stopvar
=
false
const
interval
=
setInterval
(
function
()
{
var
valueold
=
parseInt
(
stepSlider
.
noUiSlider
.
get
());
stepSlider
.
noUiSlider
.
set
(
valueold
+
1
);
console
.
log
(
valueold
)
stepSliderValueElement
.
innerHTML
=
"
Gebäude gebaut vor:
"
+
parseInt
(
stepSlider
.
noUiSlider
.
get
());
if
(
valueold
>=
2019
)
{
clearInterval
(
interval
);
}
if
(
stopvar
==
true
){
clearInterval
(
interval
);
}
},
100
);
// clearInterval(interval);
}
function
sliderautoMoveReset
()
{
stopvar
=
true
stepSlider
.
noUiSlider
.
set
(
1900
);
stepSliderValueElement
.
innerHTML
=
"
Gebäude gebaut vor:
"
+
parseInt
(
stepSlider
.
noUiSlider
.
get
());
removebuildings
();
// clearInterval(interval);
}
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