Viewing a geojson as 3D in cesium

I had added a simple geojson which contains elevation information. I tried viewing as 3D with below code
var viewer = new Cesium.Viewer(‘cesiumContainer’, {

sceneMode : Cesium.SceneMode.SCENE3D,

timeline : false,

animation : false

});

var dataSource = Cesium.GeoJsonDataSource.load(’…/…/SampleData/Buildings_3D_Elevation.geojson’);

viewer.dataSources.add(dataSource);

viewer.zoomTo(dataSource);

When i run the above code i got the viewer as attached in snapshot. I dont get any 3D. Please tell me where am i wrong. Am new to cesium.

Hello,

Cesium doesn’t handle the height automatically because it is not an official part of the GeoJSON spec. Instead, you can write a function that sets the extrudedHeight property after the geojson is processed. Take a look at the ‘custom styling’ part of this example:

Best,

Hannah

Thanks for the response. Yeah finally got it.