-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Open
Labels
Description
What happened?

const worldTerrain = Cesium.Terrain.fromWorldTerrain();
const viewer = new Cesium.Viewer("cesiumContainer", {
baseLayerPicker: false,
terrain: worldTerrain,
});
const dataSource = new Cesium.CustomDataSource('myData');
viewer.dataSources.add(dataSource);
const outlineEntity = dataSource.entities.add({
polyline: {
positions: [
{x: -1260288.0237627933, y: 5028034.076278493, z: 3703879.281951332},
{x: -1260304.7913298495, y: 5028029.099591217, z: 3703880.3253949024},
{x: -1260305.8686390927, y: 5028035.450285049, z: 3703871.3978869077},
{x: -1260289.7562942097, y: 5028039.631848951, z: 3703871.2051437167},
{x: -1260288.0237627933, y: 5028034.076278493, z: 3703879.281951332},
{x: -1260304.7913298495, y: 5028029.099591217, z: 3703880.3253949024}
],
width: 1,
clampToGround: true,
material: new Cesium.Color(1, 1, 0, 1)
},
});
viewer.zoomTo(dataSource.entities);
window.viewer = viewer;
Reproduction steps
...
Sandcastle example
No response
Environment
Browser:
CesiumJS Version:
Operating System: