Removing online elevation layer

162
1
03-23-2021 05:08 AM
Shanmugapriya55
New Contributor III

Hi All,

I have added the following online elevation to the application.

https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer

Using the following I have added the online elevation in the application.

ArcGISTiledElevationSource tiledElevationSource = new ArcGISTiledElevationSource(elevationUri);

Here, the elevationUri denotes the above online elevation url.

Now, I just want to remove the online elevation from the application through button click event.

Can anybody helps me out in this!

 

Tags (1)
0 Kudos
1 Reply
Nicholas-Furness
Esri Regular Contributor

Hi,

The Scene has a BaseSurface property of type Surface. A Surface includes a collection of elevation sources in its ElevationSources property. You should be able to remove the elevation source from that collection.

0 Kudos