Hi,
I modified the KML sample in sandcastle and I was able to reproduce the issue. My code is below, to see the error, click the 'Load KML Network Link' button, then switch to 2D and it should give the stack trace I gave above:
var viewer = new Cesium.Viewer('cesiumContainer');
var options = {
camera : viewer.scene.camera,
canvas : viewer.scene.canvas
};
Sandcastle.addToolbarButton('Load KML Network link',
function() {
var kmlText='<kml><NetworkLink>' +
'<name><![CDATA[Test]]></name>' +
'<refreshVisibility>0</refreshVisibility>' +
'<flyToView>0</flyToView>' +
'<Link><href><![CDATA[../../SampleData/kml/facilities/facilities.kml]]></href>' +
'<viewRefreshMode>onStop</viewRefreshMode>' +
'<viewRefreshTime>0</viewRefreshTime>' +
'<viewFormat>BBOX=[bboxWest],[bboxSouth],[bboxEast],[bboxNorth]</viewFormat>' +
'</Link></NetworkLink></kml>';
var dom = new DOMParser().parseFromString(kmlText, 'text/xml');
viewer.camera.flyHome(0);
viewer.dataSources.add(Cesium.KmlDataSource.load(dom, options));
});
Sandcastle.reset = function() {
viewer.dataSources.removeAll();
viewer.clock.clockRange = Cesium.ClockRange.UNBOUNDED;
viewer.clock.clockStep = Cesium.ClockStep.SYSTEM_CLOCK;
};
Let me know if you don't see the same. I'm using firefox 43.0.1, FYI...
Thanks,
Rad