I am unable to zoom to given geojson data in cesium primarily because data is also not visible on cesium.
I am using the following code:
const geoJsonUrl = 'visibility.geojson';
Cesium.GeoJsonDataSource.load(geoJsonUrl).then(function (dataSource) {
viewer.dataSources.add(dataSource);
console.log(dataSource);
// Zoom to the data once loaded
viewer.zoomTo(dataSource);
});
I am expecting on opening the screen it should zoomed me to given geojson location, where geojson data is also visible