Skip to content

Commit 75512b6

Browse files
committed
Add screenshot.
1 parent 41aa4da commit 75512b6

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

Shared/Samples/Display scene from mobile scene package/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Opens 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

1313
When 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

1917
This sample takes a Mobile Scene Package that was created in ArcGIS Pro, and displays a `Scene` from within the package in a `SceneView`.
2018

2119
1. 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

Shared/Samples/Display scene from mobile scene package/README.metadata.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"category": "Scenes",
33
"description": "Opens and displays a scene from a Mobile Scene Package (.mspk).",
44
"ignore": false,
5-
"images": [],
5+
"images": [
6+
"display-scene-from-mobile-scene-package.png"
7+
],
68
"keywords": [
79
"offline",
810
"scene",
221 KB
Loading

0 commit comments

Comments
 (0)