Interface IElevationSource
Supplies the terrain heights a map displaces and samples. Implement this to feed the map your own DEM instead of the built-in Terrarium tiles.
public interface IElevationSource
Remarks
The map owns the lifecycle around this: when to fetch, when to re-fetch as the view moves, which result wins when two fetches overlap, and when to dispose a set. A source only answers "here are the heights for this window".
Methods
BeginFetch(IReadOnlyList<TileCoord>, ZoomLevel)
Starts resolving a data set for one coverage window. Must return immediately; the map polls the returned handle once a frame.
IElevationFetch BeginFetch(IReadOnlyList<TileCoord> coverageTiles, ZoomLevel zoom)
Parameters
coverageTilesIReadOnlyList<TileCoord>The tiles to cover, all at
zoom. The map reuses this list after the call returns, so copy it if you need it later.zoomZoomLevelZoom level every tile in the window is at.
Returns
- IElevationFetch
A handle the map polls to completion. Never null.