Label feature dynamicly
Hi,
Is it possible now in Workflow to label features dynamically, for example, select a couple of features and then only label the selected features using one of the attributes? or it's something in pipe? Thanks.
-
Does anyone have an update on this question? Thank you
0 -
If you are only labelling a couple of features you could use the text drawing tool. On the Tasks tab, with the drawing tools, there is a Text tool. Click on the feature you want to label, and then click the ellipses. A dialogue box opens where you can select an attribute to use for the label.
0 -
You could probably do something like this with the "SetLayerDefinition" activity. I would do it like this:
- Add a copy of the layer you wish to label to the map service, and configure it to label the desired field(s), etc... Symbolize it to be invisible, so that only the label is visible. You would also perhaps want to hide it in the layer list and legend.
- Then in your workflow, get the selected features, and create a definition expression, using objectid, like "ObjectID in (" + objIdList + ")" or similar.
- Next, use that expression in the SetLayerDefinition activity to filter the layer to show only those features.
Of coures this only works if you can identify the field(s) and layer(s) at design time. If you need something more dynamic where the user is choosing which layer and field, then I dont know how to do that.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare