Open a web scene from a portal item.
Use case
A scene is symbolized geospatial content that allows you to visualize and analyze geographic information in an intuitive and interactive 3D environment. Web scenes are an ArcGIS format for storing scenes in ArcGIS Online or portal. Scenes can be used to visualize a complex 3D environment like a city.
How to use the sample
When the sample opens, it will automatically display the scene from ArcGIS Online. Pan and zoom to explore the scene.
How it works
To open a web scene from a portal item:
- Create a
PortalItem
with an item ID pointing to a web scene. - Create a
Scene
passing in the portal item. - Set the scene to a
SceneView
to display it.
Relevant API
- PortalItem
- Scene
- SceneView
About the data
This sample uses a Berlin, Germany scene hosted on ArcGIS Online.
Tags
portal, scene, web scene
Sample Code
<UserControl x:Class="ArcGISRuntime.WPF.Samples.OpenScenePortalItem.OpenScenePortalItem"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013">
<Grid>
<esri:SceneView x:Name="MySceneView" />
</Grid>
</UserControl>