I'm trying to label address points (with the ArcGIS Online labeling functionality) for one of our city's webmaps. Some of the addresses have unit numbers, some don't. I put together an Arcade expression that checks the "unit" field for values so that all points will be labeled correctly.
var unitVal = $feature.unit
var stVal = $feature.snumber
function mainfunc(unitVal,stVal){
if (unitVal == ' '){
return stVal
}
else {
return Concatenate([stVal,unitVal], ':')
}
}
mainfunc(unitVal,stVal);
The labels appear correctly in ArcGIS Online, but will not draw in a web application that calls on that AGO map. Has anyone come across the same issue?