Hi,
I am new one for ArcGIS.
I tried to load the local .slpk file. Its loaded successfully.
But 3D Object not rendered perfectly in base map.
Some gap is showing between base map and 3D object. like Below
My Code is below
==============
Please give us advice
Thanks
Solved! Go to Solution.
It looks like you need to add an elevation source to the scene view base surface. See this sample for an example of how to do that in code: https://developers.arcgis.com/net/wpf/sample-code/get-elevation-at-a-point/
The important lines are:
Uri elevationUri = new Uri("https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer");
Surface baseSurface = new Surface();
baseSurface.ElevationSources.Add(new ArcGISTiledElevationSource(elevationUri));
myScene.BaseSurface = baseSurface;
Alternatively try experimenting with the SurfacePlacement property of you "slpkLayer". For more info see https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Map...
It looks like you need to add an elevation source to the scene view base surface. See this sample for an example of how to do that in code: https://developers.arcgis.com/net/wpf/sample-code/get-elevation-at-a-point/
The important lines are:
Uri elevationUri = new Uri("https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer");
Surface baseSurface = new Surface();
baseSurface.ElevationSources.Add(new ArcGISTiledElevationSource(elevationUri));
myScene.BaseSurface = baseSurface;
Alternatively try experimenting with the SurfacePlacement property of you "slpkLayer". For more info see https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Map...
Thanks you MichaelBranscomb
When i set the elevation source gap issue is resolved.
But vegetations and highways is not showing after setting the elevation source.
see the following figure
Please give us advice
Thanks
The follow-up question was posted separately as https://community.esri.com/t5/arcgis-runtime-sdk-for-net-questions/vegetations-and-highways-is-not-s...