Hi, I need to update a graphic point, so that it always stays in front of the camera:
This is what I’m trying, but although the cameraX and cameraY are perfectly updating with the prober coordinates I can’t figure out how to clone the graphic with the new coordinates, so basically it needs to refresh the points XY with the new values, when I move the camera and then redraw the point. I’ve been searching for a long time for an answer, so I hope I can get some help
var cameraX;
watchUtils.whenTrue(view, "stationary", function() {
cameraX = view.camera.position.longitude ;
});
var cameraY;
watchUtils.whenTrue(view, "stationary", function() {
cameraY = view.camera.position.latitude + 0.05;
});
var point = {
type: "point", // autocasts as new Point()
x: cameraX,
y: cameraY,