Select to view content in your preferred language

Labeling in 10.2

2504
1
Jump to solution
11-14-2013 11:24 AM
MichaelDavis3
Frequent Contributor
What is the status of labeling in the 10.2 SDK?

The documentation references labelinginfo under the AGSFeatureLayer class, which is an array of AGSLabelClass objects... is there a label engine implemented in the SDK that would support labeling features from an offline geodatabase?

The documentation for those objects is a bit sparse, I'm curious if these are just frameworks that will be further implemented in a future release... if it is implemented any chance a sample might show up soon?

-Mike
0 Kudos
1 Solution

Accepted Solutions
DiveshGoyal
Esri Regular Contributor
The AGSFeatureLayer class does indeed expose labeling properties through AGSLabelClass objects. At this point, these labeling properties are for information purposes only. The layer does not automatically apply labels based on these settings. We are still working on getting labeling implemented for AGSFeatureLayer.

For offline cases however, features in the geodatabase are visualized on the map using AGSFeatureTableLayer. This layer exposes a property 'showLabels' which is ON by default, and the features on the map are displayed with labels. This is based on an early implemention of a full-fledged labeling engine. It is still not as powerful as the labeling engines available with ArcGIS Desktop, but it tries its best to honor label settings that were specified on the map document or feature service from where the geodatabase was generated. Expect many more improvements to be made in this area in coming releases, as well as labeling features from other types of layers such as AGSFeatureLayer.

View solution in original post

0 Kudos
1 Reply
DiveshGoyal
Esri Regular Contributor
The AGSFeatureLayer class does indeed expose labeling properties through AGSLabelClass objects. At this point, these labeling properties are for information purposes only. The layer does not automatically apply labels based on these settings. We are still working on getting labeling implemented for AGSFeatureLayer.

For offline cases however, features in the geodatabase are visualized on the map using AGSFeatureTableLayer. This layer exposes a property 'showLabels' which is ON by default, and the features on the map are displayed with labels. This is based on an early implemention of a full-fledged labeling engine. It is still not as powerful as the labeling engines available with ArcGIS Desktop, but it tries its best to honor label settings that were specified on the map document or feature service from where the geodatabase was generated. Expect many more improvements to be made in this area in coming releases, as well as labeling features from other types of layers such as AGSFeatureLayer.
0 Kudos