On the cesium sandcastle page @ https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/?src=Polyline.html&label=Geometries
You can see, when I click on the purple line I get a box(top right corner of the image) indicating name of the Cesium [Polyline][2] as "Purple straight arrow at height". How can I add the same name box for the [PolylineCollection][2] (line no 5 in code below)?
Here is the code
var viewer = new Cesium.Viewer('cesiumContainer');
var lineCollection = new Cesium.PolylineCollection(); // line no 5
lineCollection.add({
name : "Hi",
description : "Hi description",
positions : Cesium.Cartesian3.fromDegreesArrayHeights([-75, 53, 500000,
-125, 53, 500000]),
width : 10,
followSurface : false
});
viewer.scene.primitives.add(lineCollection);
var purpleArrow = viewer.entities.add({
name : 'Purple straight arrow at height',
polyline : {
positions : Cesium.Cartesian3.fromDegreesArrayHeights([-75, 43, 500000,
-125, 43, 500000]),
width : 10,
followSurface : false,
material : new Cesium.PolylineArrowMaterialProperty(Cesium.Color.PURPLE)
}
});
viewer.zoomTo(viewer.entities);
