AnsweredAssumed Answered

Load ArcGISSceneLayer failed in 100.1

Question asked by xipeng on Aug 17, 2017

hello:

I want to load a ArcGISSceneLayer by ArcGIS Runtime .Net 100.1,My SceneLayer's url is 

https://services2.arcgis.com/cFEFS0EWrhfDeVw9/ArcGIS/rest/services/SM__3857__US_SanFrancisco__Buildings_walk_time_attrib… /Layers/0

but Load ArcGISSceneLayer failed, My code is as follows:

string url = @"https://services2.arcgis.com/cFEFS0EWrhfDeVw9/ArcGIS/rest/services/STM____F_Helsinki__Textured_buildings_with_attributes/SceneServer/layers/0";
var dddBuildingsLayer01 = new ArcGISSceneLayer(new System.Uri(url));
this.mySceneView.Scene.OperationalLayers.Add(dddBuildingsLayer01);

await dddBuildingsLayer01.LoadAsync();

dddBuildingsLayer01.Loaded += (s, f) => {
if (dddBuildingsLayer01.LoadStatus == Esri.ArcGISRuntime.LoadStatus.Loaded)
{
MapPoint mp = dddBuildingsLayer01.FullExtent.Extent.GetCenter();
MapPoint newMapoint = new MapPoint(mp.X, mp.Y, 5000, pSLayer.SpatialReference);
Camera Camera = new Camera(newMapoint, 90, 0, 0);
this.mySceneView.SetViewpointCameraAsync(Camera, TimeSpan.FromSeconds(5));
}

};

 

If I use http://smart.arcgisonline.cn/arcgis/rest/services/Hosted/Buildings/SceneServer/layers/0 can be loaded successfully Why is that?

What's the difference between these two urls?

 

Thank you for your reply

Outcomes