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

Labeling


Looking at a bunch of points, a polyline of polygons on the map provides the location of the content, but it doesn't provide enough context about these geometries, even if they have beautiful symbology. Sometimes, it's necessary to label the features with text. Labeling is a cartographic term that means placing text on or near a feature in order to present contextual information to the user. It's possible to use a TextSymbol class and iterate over every feature or graphic, but that would be slow. Fortunately, ArcGIS Runtime comes with a labeling engine that allows you to label each feature or graphic with text in an efficient manner. In fact, with a little code you can label FeatureLayer with hundreds and thousands of features. It also possible to label a GraphicsLayer or GraphicOverlay class.

To label a layer, there are few classes in Esri.ArcGISRuntime.Layers that we need to become familiar with, so let's discuss them, and then see some examples of how to label and the options...