Is it possible to Change the ElevationSource at runtime?
I have two elevation Files (File1.tif and File2.tif) and i want to switch them.
MyScene.BaseSurface.ElevationSources.Clear());
if(file1)
{
elevationSource = new RasterElevationSource(new List<string> { @"C:\File1.tif" });
}
else
{
elevationSource = new RasterElevationSource(new List<string> { @"C:\File2.tif" });
}
elevationSource.LoadAsync();
MyScene.BaseSurface.ElevationSources.Add(elevationSource);
But if i switch, the Elevation sources seemed to be merged.