TransWikia.com

Assigning symbol and colour to attributes using Arcade expression and ArcGIS Online

Geographic Information Systems Asked by NVaissier on December 26, 2020

I would like to use an Arcade expression in ArcGIS Online web maps to assign a symbol and a colour to different attributes. For example, if the attribute value is ‘yes’: the symbol is round and has a green colour. And if the attribute value is ‘no’: Symbol is a square and has a red colour.

Is this possible in an Arcade expression?

One Answer

Yes, it is possible!!

I am sharing the workflow to be followed.

Here, I have demonstrated if StreetType is "ST" symbolize as "Green Circle" and if the StreetType is "DR" symbolize them as "Red Squares"

enter image description here

Use the below Arcqade Expression to set up the service.

var PCI = $feature.StreetType;
if (PCI == "ST") {
    return "Yes";
} else if (PCI == "DR") {
    return "No";
}

Once the expression is set, select the option to symbolize enter image description here

Set the shape and color as per your requirements.

enter image description here

enter image description here

Answered by Yogesh Chavan on December 26, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP