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

Legend


Most apps have more than one layer. In real apps, there could be five layers or even 20 layers. You could even have the option for the user to have multiple basemaps. Once multiple vector (geometric) layers are added to the map, it can easily become difficult to discern which layers are which, especially in dense urban areas. Because of this, a legend is really helpful and pretty much a standard feature for non-trivial apps. Here is an example of a legend built with the iOS version of the SDK:

Legend built with the ios version

Unfortunately, ArcGIS Runtime does not come with a legend control in Esri.ArcGISRuntime.Controls. However, Esri has built a toolkit that comes with some sample legends, which we will now make use of in the next exercise:

  1. Add a reference to Esri.ArcGISRuntime.Toolkit.dll, which is located in C:\ArcGISRuntimeBook.

  2. In the project we created earlier in this chapter, we will now add some XAML code to MainWindow.xaml. Add the following reference to the XAML code:

    xmlns...