Cesiumjs – TypeError: Cannot read property ‘length’ of null

This is how you can debug console and as a pop-up.

var viewer = new Cesium.Viewer('cesiumContainer');
viewer.dataSources.add(Cesium.KmlDataSource.load('includes/Cesium/KMLData_for_abc_2015-08-04__2015-09-14.kml'))
.otherwise(function(e){
    console.log(e);
    alert(e);
});
Share

Leave a Reply

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