1

I have an If/Else statement that works fine in ArcGIS Pro but does not work in ArcGIS Online:

    if($feature.StreetLength < 3){
return "<FNT size = '8'>" +
Left($feature.PCT_StreetTree_Cover, 4) + "%" +"</FNT>"
}
if($feature.StreetLength > 3 && $feature.StreetLength < 10){
    return "<FNT size = '14'>" + 
    Left($feature.PCT_StreetTree_Cover, 4) + "%" +"</FNT>"
}
else{
return "<FNT size = '18'>" + 
    Left($feature.PCT_StreetTree_Cover, 4) + "%" +"</FNT>"
}

Result in Pro

Result in AGO

What am I missing?

0

Those formatting tags are specific to ArcGIS Pro and are not part of the Arcade expression language. Arcade does not support specifying any formatting tags such as fonts or html.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.