Issues found in Viewer Beta

785
11
02-08-2021 10:18 AM
Jack_Lim
New Contributor III

Recently, I created a web map for presenting on Dashboard Beta by using the classic Map Viewer. However, the symbols' style that I customized through the style expression doesn't shows correctly since Dashboard Beta 2 was announced. It seems the Dashboard Beta 2 doesn't support the classic Map Viewer anymore. All the web map's configurations/settings will according to the Viewer Beta's settings.

 

Once I open the web map through the Map Viewer beta, I found that the custom symbols are not styled correctly. Expression below is the expression I created, it validate if the date field is empty.

IIF( IsEmty($feature.expdate), 'Empty', 'Not Empty')

It seems the expression performing well since it able to shows the number of each class.

Empty              20

Not Empty        7

However, on the map, it showing all the point features as Not Empty style.

 

On the other, I found the symbol size function had disappear. I supposed to be showed right below the Symbols setting group.

 

PS. I tried to submit this post with the screenshots but I keep getting error message showing "Your post has been changed because invalid HTML was found in the message body. The invalid HTML has been removed. Please review the message and submit the message when you are satisfied.".

0 Kudos
11 Replies
RussellRoberts1
Esri Frequent Contributor

Do you have this spelling mistake in your expression -> IsEmty 

 

Does using this solve the issue?

if (IsEmpty($feature.expdate)) {
    return 'Empty'
} else {
    return 'Not Empty'
}
0 Kudos
Jack_Lim
New Contributor III

Hi Russell,

I'd confirm that the spelling is correct and I tried on your suggestion too. It seems the expression has not problem since it shows the number of records in each category when I clicked on the style option which shows below.

Viewer Issue_2.png

0 Kudos
KristianEkenes
Esri Regular Contributor

Hi,

MapViewer beta dynamically requests data from the service as it needs it. This makes the performance of the app better. To accomplish this, it must inspect the Arcade expression to know which fields to request. In this case, it may not be able to tell that expdate is a required field for rendering. If you explicitly list the fields at the top of the expression, it can better detect the required fields. Try this and let me know if it works:

$feature.expdate;
IIF( IsEmpty($feature.expdate), 'Empty', 'Not Empty');

 The counts still probably show up because you were able to successfully create the renderer in the classic Map Viewer. The expression works there because the classic viewer doesn't dynamically request data...it just requested all data up front.

Let me know if this doesn't work.

0 Kudos
Jack_Lim
New Contributor III

Hi Kristian,

I'd tried it and it shows the same as I mentioned. All the points on the map show as Not Empty.

Issue_1.png

Issue_2.png

Also, when I clicked to change the icon, the Symbol Size option was disappear as well. 

Issue_3.png

 

0 Kudos
KristianEkenes
Esri Regular Contributor

Are you able to share the webmap? I think at this point, I'd just need to look at it.

0 Kudos
Jack_Lim
New Contributor III

Hi Kristian,

Thanks for looking into my issues. I'd duplicated the map, remove all the sensitive data, and shared it to public. Here is the link.
https://arcgis.com/apps/mapviewer/index.html?webmap=395adfbd9a45473f8f097be901a4de8b 

The issues remain. The symbols' style still remain as Not Empty. Also, there is another issue in the cloned web map. I'm not able to access the Style Option Panel.

Issue_4.png

 

Thanks again for helping.

 

Jack

0 Kudos
KristianEkenes
Esri Regular Contributor

Jack,

Congratulations! I think you've found an Arcade bug. 🙂 I'll create a bug report. Thanks for bringing this up!

 

Kristian

0 Kudos
Jack_Lim
New Contributor III

Hi Kristian,

Thanks again for your help & hopefully the issues get resolved soon.

 

Jack

0 Kudos
KristianEkenes
Esri Regular Contributor

Hi @Jack_Lim ,

 

FYI, this issue has been fixed on our dev branch in the JS API, so you should see this working in the next update of Map Viewer Beta and any apps that pick up the JS API, including Dashboard.

 

Kristian