Advanced Label Expression Disables Label Toggle?
Hello,
Does the use of an advanced label expression from a published mxd disable the "can toggle labels" feature in Geocortex Essentials? I used an advanced python label expression and published the mxd as a map service. Geocortex displays the labels fine, but the "can toggle labels" option shows false in the rest services directory. I then changed the label expression back to a single line with a field value and republished the map service. With the single line and field value for the expression the "can toggle labels" option changed to true.
Should I be using a different language for the advanced label expression, am I missing something else, or is this a limitation?
Thanks,
Tyson
-
The label toggle is also disabled by using simple concatiation in the label expression. This is done without using the advanced label expression checkbox in arcmap.
Example
When using the following label expression "Can Toggle Labels" on the mapservice is "true".
[HUC_4]
When using the following "Can Toggle Labels" on the mapservice is "false".
[HUC_NAME] + VbCrLf + "("+[HUC_4]+")"The labels from this example display fine, but the second one cannot be toggled.
0 -
Hi Tyson,
When you set an Advanced Label Expression on one of your layers, the Labeling Info section at the ArcGIS Server REST Endpoint will be null. I suspect this is also the case when using concatenation in the label expression. In Essentials we have been determining whether labels are present/can be toggled by whether there was labeling info or not. In the upcoming release of Essentials 4.0, we've changed this behavior to additionally look at the Has Labels property. If this is set to True, which should be the case using either Advanced Label Expressions or concatenation, the CanToggleLabels property in Essentials will be set to True.
-Victoria
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare