Custom label in New Map Viewer

276
5
03-03-2022 12:59 PM
Labels (1)
Boyang_Wang
Occasional Contributor II

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?

0 Kudos
5 Replies
RussRoberts
Esri Notable Contributor

Is this button present ?

RussellRoberts1_0-1646409006403.png

 

0 Kudos
Boyang_Wang
Occasional Contributor II

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
Occasional Contributor II

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
Occasional Contributor II

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