Map Viewer Beta and Arcade Expression Symbology

271
2
03-05-2020 01:38 PM
DavidColey
Frequent Contributor

Hi - I have a large When arcade expression I use to group zoning codes into zoning groups to support easier viewing and interpretation.  When I apply the expression in the Map Viewer Beta, the expression fails, reporting that the return needs to be an integer.  Doesn't happen in Enterprise 10.7.1 or the current 3.x AGOL map viewer.  Here is a portion of the expression:

var zone = $feature.zoningcode;
var sym = When(zone == 'AIRPORT AUTHOR', 'Airport Authority',
zone == 'CG' || zone == 'CG/EBD' || zone == 'CG/MSOD' || zone == 'CG' || zone == 'CG/SKOD' || zone == 'CI' || zone == 'CI/SKOD' || zone == 'CN' || zone == 'CSC' || zone == 'CG/PNOD' || zone == 'CN/PNOD', 'Commercial', 
zone == 'CHI', 'Commercial Highway Interchange',
zone == 'CM' || zone == 'CM/PD', 'Commercial Marine',
zone == 'GU' || zone == 'GU/SKOD', 'Government', 
zone == 'HPD', 'Hamlet Planned Development', 
zone == 'I' || zone == 'ILW' || zone == 'IR', 'Industrial',
zone == 'MP' || zone == 'MP/SKOD', 'Marine', 
zone == 'OPI' || zone == 'OPI/EBD' || zone == 'OPI/PD' || zone == 'OPI/RRZ' || zone == 'OPI/SKOD' || zone == 'OPI/PNOD', 'Office Professional',  ......

zone == 'LONGBOAT' || zone == 'NORTH PORT' || zone == 'SARASOTA' || zone == 'VENICE', 'Municipality', zone);
return sym;

Has anyone else experienced this?

Thanks-

David

0 Kudos
2 Replies
XanderBakker
Esri Esteemed Contributor

Hi dcoley , 

I'm sharing this with the ArcGIS Online Map Viewer Beta group to give it more visibility, but as far as I understand, currently there are a couple of limitations in the Map Viewer Beta.  

0 Kudos
DavidColey
Frequent Contributor

Sure Xander, thanks.

0 Kudos