Having a native API present for both WASM and JS gauges which can return terrain elevation data at multiple distinct points over a defined area is necessary for creating a proper custom terrain radar, as well as vertical situation display, and enhanced GPWS.
There is a function in P3D which accomplishes this via SimConnect - however, given the lack of an efficient data bus between WASM and JS, also having this available natively in JS would be greatly appreciated: