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:
-
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 andALspViewXYZWorldTransformation
for Lightspeed views. -
Querying the view for the data on that position. This is done using a
TLcdGXYViewMeasureProvider
for GXY views or aTLspViewMeasureProvider
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.