Skip to content
GitLab
Menu
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
Jun 02, 2021
by
Pithon Kabiro
Browse files
Tweak properties for Cesium globe; change basemap
parent
1028571a
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/js/appCesium.js
View file @
d1d5de51
...
@@ -9,9 +9,11 @@ const LOAD_DETAILED_BLDG225 = false;
...
@@ -9,9 +9,11 @@ const LOAD_DETAILED_BLDG225 = false;
// Global variable
// Global variable
const
viewer
=
new
Cesium
.
Viewer
(
"
cesiumGlobeContainer
"
,
{
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
loadTiles
=
function
(
urlTiles
)
{
const
tileset
=
new
Cesium
.
Cesium3DTileset
({
const
tileset
=
new
Cesium
.
Cesium3DTileset
({
...
@@ -40,7 +42,7 @@ const loadNonDetailed = function () {
...
@@ -40,7 +42,7 @@ const loadNonDetailed = function () {
// Paths to data sources
// Paths to data sources
const
URL_3DTILES
=
"
data_3d/3dtiles/1_full/tileset.json
"
;
const
URL_3DTILES
=
"
data_3d/3dtiles/1_full/tileset.json
"
;
// Tileset with
out
building
225
// Tileset with
all
building
s
loadTiles
(
URL_3DTILES
);
loadTiles
(
URL_3DTILES
);
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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