When the terrain's not as interesting, I like to use the OpenStreets view of Cesium to get a crisper look at how propagation changes with respect to grey line.
Making maps default to OpenStreets wasn't as easy as I would have liked to pull that off the first time I tried though. Here's the process for switching a map over to OpenStreets imagery right after it's created.
Here's an example of how to code this.
const czml = "";
const viewer = new Cesium.Viewer("cesiumContainer", {
terrain: Cesium.Terrain.fromWorldTerrain(),
});
var osm = new Cesium.OpenStreetMapImageryProvider({
url : 'https://tile.openstreetmap.org'
});
viewer.imageryLayers.addImageryProvider(osm);
viewer.scene.globe.enableLighting = true;
const dataSourcePromise = Cesium.CzmlDataSource.load("https://raw.githubusercontent.com/hcarter333/rm-rbn-history/refs/heads/main/maps/TouCansVerticalPierGround.czml");
viewer.dataSources.add(dataSourcePromise);
Comments
Post a Comment
Please leave your comments on this topic: