Labeling of features in App Studio

1331
2
01-18-2017 05:09 AM
by Anonymous User
Not applicable

Hi all.

I'm interested to hear of any other user's experience with labeling of features on maps within apps built with AppStudio. I gather that currently there are no real controls over feature labeling and it is reliant on whatever was set in the feature service initially. I've had a lot of difficulty getting labels to even display, even after playing around extensively with the labeling options in the mxd prior to upload. (yes, labels are enabled on the featurelayer and yes, they do display sometimes, but the logic around placement and display dependent on size and placement of adjourning features/labels seems to result in labels not displaying most of the time)

AGOL seems to display the labels fine. I seem to remember someone in the App Studio or Qt team indicating that work was being done on improving labeling in Quartz.

I'd be interested to hear if anyone had played around with labeling in the existing version, what worked and didn't work.

I'd had thought about writing a function that created and updated graphics on a separate GraphicsLayer with text every time the map extent changed, but am concerned about the device processing overhead that would use and obviously the placement etc would be fairly crude e.g. place in the center of the feature...

Cheers,

-Paul

0 Kudos
2 Replies
LucasDanzinger
Esri Frequent Contributor

FYI for Runtime v 100.0, the labeling support is still very basic. An upcoming release of Runtime will likely have a proper labeling API which will allow for fine grained control, but we aren't there yet. You could create graphics with TextSymbols, but depending on the amount of features, I think this could get out of hand pretty quickly. However, it is by all means possible, and some people do it successfully, depending on the use case.

by Anonymous User
Not applicable

Thanks Luke, that pretty much confirms what I suspected about the current situation. I might have a play with the TextSymbols but I share the same concerns about it.

0 Kudos