Opens and displays a scene from a Mobile Scene Package (.mspk).

Use case
An .mspk file is an archive containing the data (specifically, basemaps and features), used to display an offline 3D scene.
How to use the sample
When the sample opens, it will automatically display the Scene in the Mobile Map Package.
How it works
This sample takes a Mobile Scene Package that was created in ArcGIS Pro, and displays a Scene from within the package in a SceneView.
- Create a
MobileScenePackageusing the path to the local .mspk file. - Call
MobileScenePackage.load()and check for any errors. - When the
MobileScenePackageis loaded, obtain the firstScenefrom theMobileScenePackage.scenesproperty. - Create a
SceneViewby passing in the scene.
Relevant API
- MobileScenePackage
- SceneView
Offline data
This mobile scene package was authored with ArcGIS Pro. It is downloaded from ArcGIS Online automatically.
This item is available on ArcGIS Online.
Tags
offline, scene