Thanks to all who made this little wonderful program. Thank you.
What I am saying here is NOT an issue, may be a new feature request or simply my ignorance of figuring out things.
Whenever user clicks on the canvas, I am trying to visually indicate the selected star.
On click we can find the nearest object like as follows (extracted from samples provided) ::
...so, now we know the star user is trying to select, but how to show user, the star he selected. i.e visually indicating the selected star.
Checked addPointer method source, we can draw over the star by changing the label, but feeling inappropriate.
if(this.pointers[i].ra == input.ra && this.pointers[i].dec == input.dec && this.pointers[i].label == input.label) matched = i;
I know little-bit of JavaScript, I appreciate any ideas/pointers/directions to highlight star(s) on canvas.
Thanks to all who made this little wonderful program. Thank you.
What I am saying here is NOT an issue, may be a new feature request or simply my ignorance of figuring out things.
Whenever user clicks on the canvas, I am trying to visually indicate the selected star. On click we can find the nearest object like as follows (extracted from samples provided) ::
...so, now we know the star user is trying to select, but how to show user, the star he selected. i.e visually indicating the selected star.
Checked addPointer method source, we can draw over the star by changing the label, but feeling inappropriate.
if(this.pointers[i].ra == input.ra && this.pointers[i].dec == input.dec && this.pointers[i].label == input.label) matched = i;
I know little-bit of JavaScript, I appreciate any ideas/pointers/directions to highlight star(s) on canvas.