Geographic Information Systems Asked by Zarul Zakuan on November 29, 2020
I tried the Arcgis tutorial from here. It shows how to add basemap and elevation so that the scene would show a 3D surrounding, but it doesn’t. Can someone help me?
This is my .cs file
private void Initialize()
{
// Create a new scene
var myScene = new Scene(Basemap.CreateTopographic());
Map3D.Scene = myScene;
// create an elevation source
var elevationSource = new ArcGISTiledElevationSource(new System.Uri("http://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer"));
// create a surface and add the elevation surface
var sceneSurface = new Surface();
sceneSurface.ElevationSources.Add(elevationSource);
// apply the surface to the scene
Map3D.Scene.BaseSurface = sceneSurface;
// Create camera with an initial camera position (Mount Everest in the Alps mountains)
var snowdonCamera = new Camera(53.06, -4.04, 1289, 295, 71, 0);
// Set the scene view's camera position
Map3D.SetViewpointCameraAsync(snowdonCamera);
}
And this is my xaml file
<Grid>
<esri:SceneView x:Name="Map3D"/>
</Grid>
It was due to the corporate VPN I was connected to. For some reason the elevation layer link was blocked by the VPN. I can either set a proxy, or just diconnect from the VPN.
Answered by Zarul Zakuan on November 29, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP