I added geojson polygon data, it showed .
but the geojson linestring data can’t show.
Did anyone tell me where it is wrong, thanks
var source1 = new Cesium.GeoJsonDataSource(‘t1’);
viewer.dataSources.add(source1);
source1.load(’./blinetest.json’, {
stroke: Cesium.Color.fromBytes(51,147,201,255),
strokeWidth: 1
}).then(function(){
var p = source1.entities.values;
for (var i = 0; i < p.length; i++) {
p[i].polyline.material = Cesium.Color.fromBytes(17,49,167,255);
p[i].polyline.width = 1;
var nowtime = Cesium.JulianDate.now();
viewer.entities.add({
polylineVolume : {
positions : p[i].polyline.positions.getValue(nowtime),
shape : computeCircle(5.0),
outline : false,
material : Cesium.Color.fromBytes(17,49,167,255)
}
});
}
});