-
Book Overview & Buying
-
Table Of Contents
Learning ArcGIS Runtime SDK for .NET
By :
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...
Change the font size
Change margin width
Change background colour