In some cases, you want to find what the value of the data is under your mouse. For example when hovering over elevation data, you want to know the height at that point.

This process requires two steps:

  1. Converting the screen position of your mouse cursor in pixel coordinates to a location on the Earth surface. This is done using an ILcdGXYViewXYWorldTransformation for GXY views and ALspViewXYZWorldTransformation for Lightspeed views.

  2. Querying the view for the data on that position. This is done using a TLcdGXYViewMeasureProvider for GXY views or a TLspViewMeasureProvider for Lightspeed views.

For an example, see the sample code of samples.common.mouse.AMouseReadoutProvider. For more information, see How to determine the world position from a screen position.