Load ArcGISSceneLayer failed in 100.1

335
0
08-17-2017 08:58 PM
xipeng
by
New Contributor III

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__Buildi... /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_build...";
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

0 Kudos
0 Replies