Cesiumjs – How to make Wall ?

Cesiumjs-how-to-make-wall

var viewer = new Cesium.Viewer('cesiumContainer');

var blueCorridor = viewer.entities.add({
    corridor : {

        positions : Cesium.Cartesian3.fromDegreesArray([
            -120.0, 60.0,
            -90.0, 60.0
        ]),

        extrudedHeight : 500000.0,
        width : 50.0,
        cornerType: Cesium.CornerType.BEVELED,
        material : Cesium.Color.BLUE.withAlpha(0.5),
        outline : true,
        outlineColor : Cesium.Color.BLUE
    }
});


viewer.zoomTo(viewer.entities);

Share

Leave a Reply

Your email address will not be published. Required fields are marked *