Я использую следующий код:
Код: Выделить всё
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);
});
Подробнее здесь: https://stackoverflow.com/questions/793 ... -in-cesium
Мобильная версия