sampleTerrain: buffering/reuse of received terrain tiles

I want show elevation under mouse cursor during cursor movement. I tried use function sampleTerrain, but the function sends a request each time when called.

Is it possible to buffer the tiles and reuse it without sending the request?

Hi there,

Globe.getHeight will sample whatever terrain tiles are currently loaded on the globe, which may work better for your case.

You can also use Globe.pick to get the intersection of a ray with the currently loaded globe terrain.

Thanks,

Gabby