Select to view content in your preferred language

Map symbology in Survey123 different from AGOL map

380
3
Jump to solution
05-21-2024 06:56 AM
mikAMD
by
Frequent Contributor

I have this AGOL map that uses different colors based on surveys and created a symbology which works fine in the web version of the map.

Notice the blue line in the following screenshot:

mikAMD_0-1716299581337.png

 

Then I linked this map in Survey123 Connect and added it's ID reference under body::esri:style for a geopoint question. This is what renders in the app (no blue line):

mikAMD_1-1716299662149.png

 

Any reason why the map symbology does not follow?

Thanks.

0 Kudos
1 Solution

Accepted Solutions
mikAMD
by
Frequent Contributor

I changed my arcade expression and it works.

The field in question uses a domain but I also wanted to deal with null values. So I had multiple ifs do extract  all the possible domain names and another if(isempty($feature)) return "something".

Now I just have

if (isempty($feature.field)) {
  return "something"
} else {
  DomainName($feature, "field")
}

 

Thanks!

View solution in original post

0 Kudos
3 Replies
abureaux
MVP Frequent Contributor

Question on semantics. Is that a "Blue line", or is it a "selected feature"?

0 Kudos
mikAMD
by
Frequent Contributor

great question!

there is no selection. I have an arcade expression which defines symbology categories and then those categories are styled differently.

mikAMD_0-1716330800967.png

 

Edit: the labels, which are based on the same rules (yet they are filters, not an arcade expression), do work.

Web map viewer:

mikAMD_0-1716331108983.png

 

Survey123:

mikAMD_1-1716331119758.png

 

0 Kudos
mikAMD
by
Frequent Contributor

I changed my arcade expression and it works.

The field in question uses a domain but I also wanted to deal with null values. So I had multiple ifs do extract  all the possible domain names and another if(isempty($feature)) return "something".

Now I just have

if (isempty($feature.field)) {
  return "something"
} else {
  DomainName($feature, "field")
}

 

Thanks!

0 Kudos