Open mobile scene package
Opens and displays a scene from a Mobile Scene Package (.mspk).
An .mspk file is an archive containing the data (specifically, basemaps and features), used to display an offline 3D scene.
When the sample opens, it will automatically display the Scene in the Mobile Map Package.
- Create a
MobileScenePackageusing the path to the local .mspk file.
MobileScenePackage.IsDirectReadSupportedAsyncto check whether the package can be read in the archived form (.mspk) or whether it needs to be unpacked.
- If the mobile scene package requires unpacking, call
- When the
MobileScenePackageis loaded, obtain the first
- Display the scene in a SceneView.
The following items will be downloaded from ArcGIS Online automatically:
- Philadelphia MSPK - Philadelphia mobile scene package authored in ArcGIS Pro
This mobile scene package was authored with ArcGIS Pro.
An .mspk file is an archive containing the data used to display an offline 3D scene. Some mobile scene packages have data that must be unpacked before reading.
<UserControl x:Class="ArcGISRuntime.UWP.Samples.OpenMobileScenePackage.OpenMobileScenePackage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:esri="using:Esri.ArcGISRuntime" xmlns:esriUI="using:Esri.ArcGISRuntime.UI.Controls"> <Grid> <esriUI:SceneView x:Name="MySceneView" /> </Grid> </UserControl>