Book Image

Learning ArcGIS Runtime SDK for .NET

By : Ron Vincent
Book Image

Learning ArcGIS Runtime SDK for .NET

By: Ron Vincent

Overview of this book

ArcGIS is a geographic information system (GIS) that enables you to work with maps and geographic information. It can be used to create and utilize maps, compile geographic data, analyze mapped information, share and discover geographic information and manage geographic information in a database. This book starts by showing you where ArcGIS Runtime fits within Esri’s overall platform strategy. You'll create an initial map using the SDK, then use it to get an understanding of the MVVM model. You'll find out about the different kinds of layers and start adding layers, and you'll learn to transform maps into a 3D scene. The next chapters will help you comprehend and extract information contained in the maps using co-ordinates and layer objects. Towards the end, you will learn to set the symbology, decide whether to use 2D or 3D, see how to implement 2D or 3D, and learn to search and find objects. You'll also get to grips with many other standard features of the Application Programming Interface (API), including create applications and finally testing, licensing, and deploying them. Once completed, you will be able to meet most of the common requirements of any mapping application for desktop or mobile platforms.
Table of Contents (19 chapters)
Learning ArcGIS Runtime SDK for .NET
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
3
Maps and Layers
12
Configuring, Licensing, and Deploying
Index

From 2D to 3D


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