Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
iCity
EnergyDashboard
Commits
d1d5de51
Commit
d1d5de51
authored
4 years ago
by
Pithon Kabiro
Browse files
Options
Download
Email Patches
Plain Diff
Tweak properties for Cesium globe; change basemap
parent
1028571a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/js/appCesium.js
+5
-3
public/js/appCesium.js
with
5 additions
and
3 deletions
+5
-3
public/js/appCesium.js
+
5
-
3
View file @
d1d5de51
...
...
@@ -9,9 +9,11 @@ const LOAD_DETAILED_BLDG225 = false;
// Global variable
const
viewer
=
new
Cesium
.
Viewer
(
"
cesiumGlobeContainer
"
,
{
// terrainProvider: Cesium.createWorldTerrain(),
scene3DOnly
:
true
,
imageryProvider
:
Cesium
.
createOpenStreetMapImageryProvider
({
url
:
"
https://a.tile.openstreetmap.org/
"
,
}),
});
// viewer.scene.globe.depthTestAgainstTerrain = true;
const
loadTiles
=
function
(
urlTiles
)
{
const
tileset
=
new
Cesium
.
Cesium3DTileset
({
...
...
@@ -40,7 +42,7 @@ const loadNonDetailed = function () {
// Paths to data sources
const
URL_3DTILES
=
"
data_3d/3dtiles/1_full/tileset.json
"
;
// Tileset with
out
building
225
// Tileset with
all
building
s
loadTiles
(
URL_3DTILES
);
};
...
...
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