I have been working on loading kml files into the Cesium globe. The kml data source and cesium server are running on the same host. I am getting a "KML - Unsupported feature: kml" error whenever I render my app.
It works just fine on GE though.
It also works fine when I load the sample kml files from Cesium
Am I missing something here?
***********My Code************************************************
function startup(Cesium) {
'use strict';
//Sandcastle_Begin
Cesium.BingMapsApi.defaultKey =XXXXX;
var viewer = new Cesium.Viewer('cesiumContainer');
viewer.infoBox.frame.sandbox = "allow-same-origin allow-top-navigation allow-pointer-lock allow-popups allow-forms allow-scripts";
var options = {
camera : viewer.scene.camera,
canvas : viewer.scene.canvas
};
Sandcastle.addToolbarMenu([{
text : 'KML - xGDS path',
onselect : function() {
viewer.camera.flyHome(0);
viewer.dataSources.add(Cesium.KmlDataSource.load('../../SampleData/kml/xgds.kml', options));
}
} ], 'toolbar');
Sandcastle.reset = function() {
viewer.dataSources.removeAll();
viewer.clock.clockRange = Cesium.ClockRange.UNBOUNDED;
viewer.clock.clockStep = Cesium.ClockStep.SYSTEM_CLOCK;
};
//Sandcastle_End
Sandcastle.finishedLoading();
}
if (typeof Cesium !== "undefined") {
startup(Cesium);
} else if (typeof require === "function") {
require(["Cesium"], startup);
}
*******************END****************************************