procedural-gl-js icon indicating copy to clipboard operation
procedural-gl-js copied to clipboard

Get world coordinates from user click

Open cyango opened this issue 3 years ago • 2 comments

Hi, don't know if this is already possible, but it would be very useful to have a kind of callback to get the world coordinates where the user clicked. This would serve several purposes:

  • Letting the user click on a map coordinate and focusOnLocation;
  • Get the world coordinates from user click, so the user can create custom overlays or even draw on map

cyango avatar Mar 07 '21 09:03 cyango

Hi @dotesfera thanks for the suggestion, that is indeed a good idea. I'll try and add this.

felixpalmer avatar Mar 15 '21 15:03 felixpalmer

Related, can we get a unproject method to get pixel screen coords of a lat long position?

grahambates-code avatar Apr 28 '22 10:04 grahambates-code