I'm developing with the ArcGIS Runtime (v100.0) for .NET. The description of the ElevationsSources property for a Surface states that it can be used to get or set the collection of elevation sources in a surface. However, when I try to use the property, it is apparently read only. So, how do I go about setting the elevation sources for a surface? Any insight will be much appreciated. Thanks!
Solved! Go to Solution.
The Surface.ElevationSources property is backed by a collection that is maintained by the API. This collection gets created when the Surface is created and you may safely assume that it will always be there. So to add an ElevationSource you add it to the existing collection.
var surface = new Surface() { Name = "Elevation Surface" };
var elevationSource = new ArcGISTiledElevationSource(elevationUri) { Name = "Test"};
surface.ElevationSources.Add(elevationSource);
Thanks Greg!
Regards,
Mark