Hello folks,
I am trying to move a 3D object, feeding in the geometry values from the API, however the changes do not appear on my sceneview unless I reload the page.
...
const newGeometry = {
type: "point", // autocasts as new Point()
x: props.valueX,
y: props.valueY,
z: props.valueZ,
};
function updateGeometry(){
var objLayer = pointGraphic.layer
// clone old graphic and edit geometry
var newGraphic = pointGraphic.clone();
newGraphic.geometry = newGeometry;
// remove old graphic, add new graphic
objLayer .remove(pointGraphic);
objLayer .add(newGraphic);
}
...
Do you guys have any hint on how all the changes can appear directly on the map (sceneView) without reloading the page, thank you!