Getting a mouse click position on the map

2,087 views
Skip to first unread message

kevin.ru...@gmail.com

unread,
Jul 12, 2013, 5:40:16 PM7/12/13
to cesiu...@googlegroups.com
I'm new to Cesium, and I am trying to allow the user to select a location on the map (mouse click), or use the mouse to specify a region of interest (e.g. rectangle or circle). I see how to get mouse events, but the coordinates are in screen space. How can I convert these into lat,lon values? The goal is to use this user input to do things like retrieve query results for that geographic location.

Thanks for any pointers.

Patrick Cozzi

unread,
Jul 13, 2013, 10:29:26 AM7/13/13
to cesiu...@googlegroups.com, kevin.ru...@gmail.com
Check out the Picking Sandcastle example.  Just mouse over the globe to see the lat/lon.

Patrick

sask

unread,
Mar 12, 2015, 11:51:43 PM3/12/15
to cesiu...@googlegroups.com, kevin.ru...@gmail.com
I have the same requirement but the link does not work. Does anyone have another sample?

Thanks a lot~

Patrick Cozzi於 2013年7月13日星期六 UTC+8下午10時29分26秒寫道:

Patrick Cozzi

unread,
Mar 12, 2015, 11:57:28 PM3/12/15
to cesiu...@googlegroups.com, kevin.ru...@gmail.com

--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/EwU6FelsXh0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages