Select to view content in your preferred language

Arcade code for symbology in arcgis online?

527
2
Jump to solution
08-24-2023 03:26 PM
anonymous55
Occasional Contributor II

Hello

I need arcade code to symbolize this condition to use on AGOL:

site id is not null and condition=open then equal to store.

Thanks

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
CarmelConnolly
Esri Regular Contributor

Perhaps 

if (IsEmpty(site id) == false && condition == "open") {
    // return symbology when conditions are met
} else {
    // return symbology when conditions not met
}

View solution in original post

2 Replies
CarmelConnolly
Esri Regular Contributor

Perhaps 

if (IsEmpty(site id) == false && condition == "open") {
    // return symbology when conditions are met
} else {
    // return symbology when conditions not met
}
anonymous55
Occasional Contributor II

Thanks @CarmelConnolly 

I end up doing this 

var condition = $feature.condition
var site = $feature.site_id

if ((condition =="Open") && !isEmpty(site)) {
  return "store"}
  
else {
  return "no store"
}

 but right now I want to bring store polygon front with with desire color and no store go back when I have overlap polygon in some location.