Opening an SLPK with Runtime 100.1 for WPF

481
2
07-12-2017 12:41 PM
MichaelHamsa
New Contributor III

Hello,

I've been working with previous versions of the 100.0 runtime based family (including the betas leading up to the latest release) and was having trouble opening a scene layer package. I just upgraded to 100.1 and attempted to open my test SLPK and was still having similar problems. I'm wondering if this version (100.1) supports opening SLPKs and if not when that is expected. As info, the scene layer package contains a LiDAR point cloud. 

My code is pretty simple...

            var myScene = new Scene(Basemap.CreateStreets());
            var layer = new ArcGISSceneLayer();
            layer.Source = new Uri(@"file://C:/Public/LiDARDemonstration.slpk");
            myScene.OperationalLayers.Add(layer);
            scene.Scene = myScene;

Thanks,

Mike... 

0 Kudos
2 Replies
NagmaYasmin
Occasional Contributor III

Hi Mike,

Could you try to use the LoadAsync() method to load all the metadata before adding the scene layer on the scene. 

Nagma

0 Kudos
吴吴蔚
New Contributor

Hi,

I have the same problem do you solve the problem?

0 Kudos