Select to view content in your preferred language

Custom label in New Map Viewer

1577
8
03-03-2022 12:59 PM
Labels (1)
Boyang_Wang
Frequent Contributor

Hi,

I am trying to label a layer with a custom text instead of values from a field. I found below documentation online:

"You can use a custom attribute expression written in Arcade instead of an attribute field. Click Use expression and use the editor window to create the expression."

(from https://doc.arcgis.com/en/arcgis-online/create-maps/configure-labels-mv.htm)

I do not see use expression option as shown in below screenshot.

label.PNG

Is it because customizing label in map image service layer is not supported?

8 Replies
RussRoberts
Esri Notable Contributor

Is this button present ?

RussellRoberts1_0-1646409006403.png

 

0 Kudos
Boyang_Wang
Frequent Contributor

No it does not exist. It seems that this customizing option only exists for feature service, not for image service even with Data and Query enabled when publishing.

label2.PNG

0 Kudos
RussRoberts
Esri Notable Contributor

Can you share the map and layer?

0 Kudos
Boyang_Wang
Frequent Contributor

Map: https://passaiccountynj.maps.arcgis.com/apps/mapviewer/index.html?webmap=fac9478f006e4fb2b84b8d0f796...

Layer: https://gis.passaiccountynj.org/arcgis/rest/services/REFERENCED_PC_County_Park_and_Municipality_Boun...

I am trying to label this "PassaicCo_GIS.GISOWNER.PC_Municipality_Boundary_Line" layer with a custom string. I am aware that I can add the string as field to the data table, but I am still wondering if an Arcade expression can be set up in Map Viewer.

Boyang_Wang
Frequent Contributor

I took a look at this again today and found that the customize button does appear now for label in map image service. Thanks,

0 Kudos
GregCarlino2
Regular Contributor

@Boyang_Wang 

I've come across this exact same issue, and I'm working in Enterprise v10.9.1:  within the 'New' Map Viewer, the button for building custom arcade labeling expressions only appears for Feature Services.  It's simply not there when you try to do the same for Map Image Services.  The documentation "Configure labels (Map Viewer)" fails to mention this distinction.  Yet, it is possible to create custom label for either service type within 'Classic Map Viewer'.

The Helpdesk was able to confirm the same behavior, and is hopefully going to check with the development team to see if this was in the plans for future versions of Enterprise.  I'm not sure if it has been addressed as off v11.0/11.1.

0 Kudos
RussRoberts
Esri Notable Contributor

This will be coming to the ArcGIS Online Release around june-july. Enterprise will pick this up for 11.2. 

Thanks!
Russ

0 Kudos
GregCarlino2
Regular Contributor

@RussRoberts

Thank you for the update.

0 Kudos