The expression below does not return Funded as a color. It returns the entire string in the map: <CLR red='0' green='169' blue='120'>" +"Funded" + "</CLR . What am I missing. I would like to return different colored labels on the map for each occupancy value. Thoughts?
IF ($feature.Occupancy == 'Funded'){
return "<CLR red='0' green='169' blue='120'>" +"Funded" + "</CLR";}
else if ($feature.Occupancy == 'PartiallyVacantFunded'){
return 'Partially Vacant Funded';}
else if ($feature.Occupancy == 'PartiallyVacantUnfunded'){
return 'Partially Vacant Unfunded';}
else if ($feature.Occupancy == 'VacantUnfunded'){
return 'Vacant Unfunded';}
else {
return 'Unknown';
}
Solved! Go to Solution.
I'm in no way an Arcade specialist, but it appears you are missing the closing ">" after CLR.
I think it should be <CLR red='0' green='169' blue='120'>" +"Funded" + "</CLR >
Hope this helps,
Tom
I'm in no way an Arcade specialist, but it appears you are missing the closing ">" after CLR.
I think it should be <CLR red='0' green='169' blue='120'>" +"Funded" + "</CLR >
Hope this helps,
Tom
Glad I could help. The issue was familiar because I've done the same many, many times.
Erased Comment, I can't delete