Query elevation or Sample for Height on Locally hosted terrain

Trying to get the value from my locally hosted terrain: Is this possible? I’m running into problems. Just wanted to make a function to return the height value when called.

const localTerrainProvider = await Cesium.CesiumTerrainProvider.fromUrl(
http://localhost/’, {
requestVertexNormals: true,
requestWaterMask: true
});

Hi @brent252, thanks for the question.

I would expect sampleTerrain or sampleTerrainMostDetailed to work even on locally hosted data.
Please try those if you haven’t then if you’re still having issues please provide more information on the errors you’re seeing.