When I’m adding my instances I am giving them an ID property but when I pick them later the ID is a random string of numbers and letters and not what I assigned.
Here is my code:
function createRadar(matrix, radar){
var instance = new Cesium.GeometryInstance({
geometry : new Cesium.HemisphereOutlineGeometry({
radius : radar.Max_Range,
minRange : radar.minRng,
minEl : radar.MinEl,
maxEl : radar.MaxEl,
angleAz : radar.Boresight_Half_Ang_Az,
stackPartitions : 10,
slicePartitions : 10
}),
modelMatrix : matrix,
id: ‘S’ + radar.Name,
attributes : {
color : Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.YELLOW)
}
});
scene.primitives.add(new Cesium.Primitive({
geometryInstances : instance,
appearance : new Cesium.PerInstanceColorAppearance({
flat : true
})
}));
}
``
I have debugged and confirmed that “‘S’ + radar.Name” outputs the string I want but when I pick it I get an ID like this “12a0a0f1-f5d9-47f6-a12f-0b8fe04f5358”
Any idea why my ID is getting overwritten by a random unique ID?