Select to view content in your preferred language

Custom Arcade Symbology makes layer unselectable in Map Viewer

114
1
3 weeks ago
Labels (3)
salexander
New Contributor

I've been experimenting with using Arcade Expressions to show unique symbols for different features in a layer. However, when applying it to a hosted feature layer in AGOL, it makes the layer un-selectable in Map Viewer. Instead of displaying the pop-up set for the layer, it's skipped entirely. Even when I revert the default style of the layer (set in the Visualization tab of the layer page) back to a style based on a field and not Arcade, it still isn't select-able.

The expression breaks the layer into 3 different styles, 'BVWD', 'USBR', and 'Unverified'. The first 2 styles depend on the value of a field called 'LATERAL_ID', while the Unverified style is dependent on the value of the field 'IS_VERIFIED'.

Here's the Arcade expression:

When(
$feature.IS_VERIFIED == 'Unverified' && IsEmpty($feature.LATERAL_ID) == True , 'Unverified',
IsEmpty($feature.LATERAL_ID) == True, 'BVWD',
IsEmpty($feature.LATERAL_ID) == False, 'USBR',
'BVWD'
)
 
Thanks in advance
0 Kudos
1 Reply
EmilyGeo
Esri Contributor

Hi @salexander

Have you enabled pop-ups for the layer?

EmilyGeo_0-1726164617995.png

 

0 Kudos