I am having trouble with my project due to the new changes. I used to be able to load an image to a DynamicBillBoard and make my defaultPoint loaded from an GeoJsonDataSource. I looked at the new GeoJsonDataSource tutorial in Sandcastle, but wasn't able to find anything useful. Please Help. The old way:
require(['Cesium'], function(Cesium){
"use strict";
var viewer = new Cesium.Viewer(‘cesiumContainer’);
var geojsonSource = new Cesium.GeoJsonDataSource(“geojson”);
var url = ‘http://localhost:8080/GeoJSONtoCesium/GeoJSON/posRpt.geojson’;
var defaultPoint = geojsonSource.defaultPoint;
defaultPoint.point = undefined;
var billboard = new Cesium.DynamicBillboard();
billboard.image = new Cesium.ConstantProperty(‘http://localhost:8080/GeoJSONtoCesium/GeoJSON/symbol.png’);
defaultPoint.billboard = billboard;
geojsonSource.loadUrl(url).then(function(){
return geojsonSource;
});
viewer.dataSources.add(geojsonSource);
Sandcastle.finishedLoading();
});