Turning an ArcGIS Runtime app from 2D to 3D requires very little effort on your part. In fact, to go from 2D to 3D, you only have to know that there are equivalents of the MapView
and
Map
classes in 3D. They are called the SceneView
and Scene
objects, respectively. Therefore, all that is is necessary is to change the code to this:
<esri:MapView x:Name="MyMapView> <esri:Map x:Name="theMap" > </esri:Map> </esri:MapView>
The preceding code is to be changed to this:
<esri:SceneView x:Name="MySceneView" <esri:Scene x:Name="theScene" > </esri:Scene> </esri:SceneView>
That's it. All that changed is that we used a SceneView
control instead of MapView
and a Scene
control instead of Map
. That was pretty easy, right? However, if you run the app with just the preceding XAML code, you'd only see this:
It's a globe, but it doesn't have any layers. The good news is that you can use all of the layers we've been using in 2D also...