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
iCityDigitalTwinFramework
applications
Commits
a4a25209
Commit
a4a25209
authored
2 years ago
by
Santhanavanich
Browse files
Options
Download
Email Patches
Plain Diff
update
parent
990246f2
Pipeline
#6878
passed with stage
in 21 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
public/dashboard/assets/js/cesium_00_Main.js
+15
-15
public/dashboard/assets/js/cesium_00_Main.js
public/dashboard/index.html
+3
-2
public/dashboard/index.html
with
18 additions
and
17 deletions
+18
-17
public/dashboard/assets/js/cesium_00_Main.js
+
15
-
15
View file @
a4a25209
...
@@ -52,7 +52,7 @@ if ($("#PVSpecificYield-legend").length > 0) {
...
@@ -52,7 +52,7 @@ if ($("#PVSpecificYield-legend").length > 0) {
Cesium
.
Ion
.
defaultAccessToken
=
'
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJkZTkyOTcyNC0yMGFkLTQ2ZjktODA5YS0xYjY1N2QwM2Y2ZmMiLCJpZCI6NDM2NDUsImlhdCI6MTYxMjkyNDgwNX0.12Xvbhtt_c2Y2RGA6J_J906Vdn1iOKZKPur0SASh-gk
'
;
Cesium
.
Ion
.
defaultAccessToken
=
'
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJkZTkyOTcyNC0yMGFkLTQ2ZjktODA5YS0xYjY1N2QwM2Y2ZmMiLCJpZCI6NDM2NDUsImlhdCI6MTYxMjkyNDgwNX0.12Xvbhtt_c2Y2RGA6J_J906Vdn1iOKZKPur0SASh-gk
'
;
var
viewer
=
new
Cesium
.
Viewer
(
'
cesiumContainer
'
,
{
var
viewer
=
new
Cesium
.
Viewer
(
'
cesiumContainer
'
,
{
terrainProvider
:
Cesium
.
createWorldTerrain
(),
terrainProvider
:
Cesium
.
createWorldTerrain
(),
baseLayerPicker
:
fals
e
,
baseLayerPicker
:
tru
e
,
vrButton
:
false
,
vrButton
:
false
,
geocoder
:
true
,
geocoder
:
true
,
navigationHelpButton
:
false
,
navigationHelpButton
:
false
,
...
@@ -63,21 +63,21 @@ var viewer = new Cesium.Viewer('cesiumContainer', {
...
@@ -63,21 +63,21 @@ var viewer = new Cesium.Viewer('cesiumContainer', {
homeButton
:
false
,
homeButton
:
false
,
fullscreenButton
:
true
,
fullscreenButton
:
true
,
infoBox
:
true
,
infoBox
:
true
,
imageryProvider
:
new
Cesium
.
MapboxStyleImageryProvider
({
//
imageryProvider: new Cesium.MapboxStyleImageryProvider({
// check style ID at https://docs.mapbox.com/api/maps/styles/
//
// check style ID at https://docs.mapbox.com/api/maps/styles/
// styleId: 'dark-v10',
//
// styleId: 'dark-v10',
styleId
:
'
light-v10
'
,
//
styleId: 'light-v10',
// styleId: 'navigation-day-v1',
//
// styleId: 'navigation-day-v1',
accessToken
:
'
pk.eyJ1IjoidGh1bnlhdGhlcCIsImEiOiJjamFpOWV4a2gxd21vMndxdXd2M3VoY3hmIn0.jLlCscei0yH-ZHwcfxF_ug
'
//
accessToken: 'pk.eyJ1IjoidGh1bnlhdGhlcCIsImEiOiJjamFpOWV4a2gxd21vMndxdXd2M3VoY3hmIn0.jLlCscei0yH-ZHwcfxF_ug'
})
//
})
// terrainExaggeration: 1.5,
// terrainExaggeration: 1.5,
});
});
var
tileset
=
viewer
.
scene
.
primitives
.
add
(
//
var tileset = viewer.scene.primitives.add(
new
Cesium
.
Cesium3DTileset
({
//
new Cesium.Cesium3DTileset({
url
:
Cesium
.
IonResource
.
fromAssetId
(
75343
),
//
url: Cesium.IonResource.fromAssetId(75343),
})
//
})
);
//
);
viewer
.
camera
.
setView
({
viewer
.
camera
.
setView
({
"
destination
"
:
{
"
destination
"
:
{
...
@@ -263,8 +263,8 @@ var addBuilding = function () {
...
@@ -263,8 +263,8 @@ var addBuilding = function () {
}
}
});
});
//
tileset_3Dbuildings.style = building_style["AllWhite"];
tileset_3Dbuildings
.
style
=
building_style
[
"
AllWhite
"
];
tileset_3Dbuildings
.
style
=
building_style
[
"
height
"
];
//
tileset_3Dbuildings.style = building_style["height"];
};
};
addBuilding
();
addBuilding
();
...
...
This diff is collapsed.
Click to expand it.
public/dashboard/index.html
+
3
-
2
View file @
a4a25209
...
@@ -134,8 +134,9 @@
...
@@ -134,8 +134,9 @@
<select
class=
"form-select"
id=
"BuildingStyleSelector"
>
<select
class=
"form-select"
id=
"BuildingStyleSelector"
>
<option
value=
"AllWhite"
selected
>
Default
</option>
<option
value=
"AllWhite"
selected
>
Default
</option>
<option
value=
"transparent"
>
Transparent
</option>
<option
value=
"transparent"
>
Transparent
</option>
<option
value=
"PVPotential"
>
PV Potential
</option>
<option
value=
"height"
>
Building Height
</option>
<option
value=
"PVSpecificYield"
>
PV Specific Yield
</option>
<!-- <option value="PVPotential">PV Potential</option>
<option value="PVSpecificYield">PV Specific Yield</option> -->
</select>
</select>
<div
class=
"form-check pt-2"
>
<div
class=
"form-check pt-2"
>
<input
class=
"form-check-input"
type=
"checkbox"
value=
""
id=
"shadow_check"
>
<input
class=
"form-check-input"
type=
"checkbox"
value=
""
id=
"shadow_check"
>
...
...
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