I had a 2d geojson data for a building floor-plan. I extrude each geometry using height attribute. Issue is that the all the edges come jagged. How can I improve the quality of map?
code to display viewer:
viewer = new Cesium.Viewer('cesiumContainer', {
baseLayerPicker : false,
infoBox : false,
selectionIndicator : false,
shadows: true,
vrButton: false,
geocoder: false,
homeButton: false,
sceneModePicker: false,
timeline: false,
navigationHelpButton: false,
navigationInstructionsInitiallyVisible: false,
scene3DOnly: false,
resolutionScale: 2.0,
skyAtmosphere: false,
animation: false,
//mapProjection: new Cesium.WebMercatorProjection(),
sceneMode: Cesium.SceneMode.SCENE3D
});
code to extrude polygon
var promise = Cesium.GeoJsonDataSource.load(geoJsonUrl);
promise.then(function(dataSource) {
viewer.dataSources.add(dataSource);
//Get the array of entities
var entities = dataSource.entities.values;
var colorHash = {};
for (var i = 0; i < entities.length; i++) {
var entity = entities[i];
var geom = entity.polygon;
geom.height = entity.properties.bhght + 0.1;
geom.extrudedHeight = entity.properties.hght + 0.1;
}
}
viewer.zoomTo(entities);