Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
iCityDigitalTwinFramework
applications
Commits
e35a6a72
Commit
e35a6a72
authored
Aug 22, 2022
by
JOE XMG
Browse files
up
parent
a4a25209
Pipeline
#6879
passed with stage
in 18 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
public/dashboard/assets/js/cesium_00_Main.js
View file @
e35a6a72
// update cesium Container Width to fit the Web Frame after document ready
$
(
document
).
ready
(
function
()
{
// $("#cesiumContainer").css("width", "auto");
$
(
'
#loading
'
).
hide
();
// $( window ).resize(function() {
// $("#cesiumContainer").css("width", "auto");
// });
});
var
PVPotential_legend_context
=
`
<small class="font-weight-bold">PV Potential MWh/year </small> <br>
...
...
@@ -17,19 +13,6 @@ var PVPotential_legend_context = `
<span class="dot" style="background-color: #FFFFD4"></span> 0 - 5<br>
<br>
`
// var PVPotential_legend_context = `
// <small class="font-weight-bold">PV Potential MW⋅h<sub>el</sub> </small> <br>
// <span class="dot" style="background-color: #F22E22"></span> >= 8 <br>
// <span class="dot" style="background-color: #F56D1F"></span> 7 - 8 <br>
// <span class="dot" style="background-color: #F9A717"></span> 6 - 7 <br>
// <span class="dot" style="background-color: #FECE02"></span> 5 - 6 <br>
// <span class="dot" style="background-color: #F6EC00"></span> 4 - 5 <br>
// <span class="dot" style="background-color: #D1E023"></span> 3 - 4 <br>
// <span class="dot" style="background-color: #B2D531"></span> 2 - 3 <br>
// <span class="dot" style="background-color: #A4C711"></span> 1 - 2<br>
// <span class="dot" style="background-color: #61B949"></span> 0 - 1<br>
// <br>
// `
if
(
$
(
"
#PVPotential-legend
"
).
length
>
0
)
{
$
(
"
#PVPotential-legend
"
).
html
(
PVPotential_legend_context
)
// Add Bioenergy menu if the "#id" exist
}
...
...
@@ -63,42 +46,9 @@ var viewer = new Cesium.Viewer('cesiumContainer', {
homeButton
:
false
,
fullscreenButton
:
true
,
infoBox
:
true
,
// imageryProvider: new Cesium.MapboxStyleImageryProvider({
// // check style ID at https://docs.mapbox.com/api/maps/styles/
// // styleId: 'dark-v10',
// styleId: 'light-v10',
// // styleId: 'navigation-day-v1',
// accessToken: 'pk.eyJ1IjoidGh1bnlhdGhlcCIsImEiOiJjamFpOWV4a2gxd21vMndxdXd2M3VoY3hmIn0.jLlCscei0yH-ZHwcfxF_ug'
// })
// terrainExaggeration: 1.5,
});
// var tileset = viewer.scene.primitives.add(
// new Cesium.Cesium3DTileset({
// url: Cesium.IonResource.fromAssetId(75343),
// })
// );
viewer
.
camera
.
setView
({
"
destination
"
:
{
"
x
"
:
4123560.966179314
,
"
y
"
:
707228.713304919
,
"
z
"
:
4798899.985567952
},
"
orientation
"
:
{
"
direction
"
:
{
"
x
"
:
-
0.9622773420432754
,
"
y
"
:
0.19744630073107838
,
"
z
"
:
0.18718246530522495
},
"
up
"
:
{
"
x
"
:
0.23048908682520655
,
"
y
"
:
0.22606307618215207
,
"
z
"
:
0.946451407332434
}
}
})
// binding full screen button
$
(
"
#full-screen-button
"
).
click
(
function
()
{
Cesium
.
Fullscreen
.
requestFullscreen
(
document
.
body
)
...
...
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