How do I loop the following billboard settings to show all the 26 results loaded from the API?
propertyPlacemark.push(viewer.entities.add({
name : “HDB”,
position : Cesium.Cartesian3.fromDegrees(parseFloat(lonlatArray), parseFloat(lonlatArray), 100),
orientation : new Cesium.HeadingPitchRoll(0, 0, 0),
billboard: {
image:’./icons/hdb.png’,
width:60,
height:60,
verticalOrigin: Cesium.VerticalOrigin.BOTTOM,
eyeOffset : new Cesium.Cartesian3(0.0, 0.0, 0.0)
}
}));
propertyPlacemark.push(viewer.entities.add({
name : “HDB”,
position : Cesium.Cartesian3.fromDegrees(parseFloat(lonlatArray), parseFloat(lonlatArray),0),
polyline : {
positions : new Cesium.Cartesian3.fromDegreesArrayHeights([parseFloat(lonlatArray[0]), parseFloat(lonlatArray[1]), 0,
parseFloat(lonlatArray[0]),parseFloat(lonlatArray[1]), 100]),
outline : true,
outlineColor : Cesium.Color.RED,
outlineWidth : 3,
material : Cesium.Color.RED
}
}));