22
33Opens and displays a scene from a Mobile Scene Package (.mspk).
44
5- ![ Image of display scene from mobile scene package] ( DisplaySceneFromMobileScenePackage.jpg )
5+ ![ Image of display scene from mobile scene package] ( display-scene-from-mobile-scene-package.png )
66
77## Use case
88
@@ -12,16 +12,14 @@ An .mspk file is an archive containing the data (specifically, basemaps and feat
1212
1313When the sample opens, it will automatically display the Scene in the Mobile Map Package.
1414
15- Since this sample works with a local .mspk, you may need to download the file to your device.
16-
1715## How it works
1816
1917This sample takes a Mobile Scene Package that was created in ArcGIS Pro, and displays a ` Scene ` from within the package in a ` SceneView ` .
2018
21191 . Create a ` MobileScenePackage ` using the path to the local .mspk file.
22- 2 . Call ` MobileScenePackage:: load ` and check for any errors.
23- 3 . When the ` MobileScenePackage ` is loaded, obtain the first ` Scene ` from the ` MobileScenePackage:: scenes ` property.
24- 4 . Create a ` SceneView ` and call ` SceneView::setView ` to display the scene from the package .
20+ 2 . Call ` MobileScenePackage. load() ` and check for any errors.
21+ 3 . When the ` MobileScenePackage ` is loaded, obtain the first ` Scene ` from the ` MobileScenePackage. scenes ` property.
22+ 4 . Create a ` SceneView ` by passing in the scene.
2523
2624## Relevant API
2725
@@ -30,7 +28,9 @@ This sample takes a Mobile Scene Package that was created in ArcGIS Pro, and dis
3028
3129## Offline data
3230
33- _ Put instructions for your SDK's handling of offline data here._
31+ This mobile scene package was authored with ArcGIS Pro. It is downloaded from ArcGIS Online automatically.
32+
33+ [ This item is available on ArcGIS Online] ( https://www.arcgis.com/home/item.html?id=7dd2f97bb007466ea939160d0de96a9d ) .
3434
3535## Tags
3636
0 commit comments