i have upload a kml file to my assets
kml file has Placemark with weblinks, when i click on weblink it open a new tab place the targeted link in address bar but the link do not work, when i copy and paste same link from new generated browser’s tab to a new tab it works fine. please help how to solve this.
here is code( copied it from complete code example in the assets tab)
// Grant CesiumJS access to your ion assets
Cesium.Ion.defaultAccessToken = ‘eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIyNDNlMGMxNy01MjllLTRhMTAtOTcxMC1kNDNiZGE3NmIyMjQiLCJpZCI6MjM2NDQsInNjb3BlcyI6WyJhc3IiLCJnYyJdLCJpYXQiOjE1ODM3NjYzODd9.6I7ObOYLMyJvwLvSGuTQ0P9ZxxmfvZHloTtxSooENM4’;
var viewer = new Cesium.Viewer(‘cesiumContainer’);
var promise = Cesium.IonResource.fromAssetId(82213)
.then(function (resource) {
return Cesium.KmlDataSource.load(resource, {
camera: viewer.scene.camera,
canvas: viewer.scene.canvas
});
})
.then(function (dataSource) {
return viewer.dataSources.add(dataSource);
})
.then(function (dataSource) {
return viewer.zoomTo(dataSource);
})
.otherwise(function (error) {
console.log(error);
});
using windows 10, i5 , google chrome