AnsweredAssumed Answered

ArcGIS Online Labels with Arcade Custom Expression Won't Render in App

Question asked by MSakinejad_ConwayGIS on Jan 19, 2017
Latest reply on Mar 15, 2017 by KEkenes-esristaff

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?

 

Labels in ArcGIS Online Lack of Labels in Webmap

Outcomes