Esri / arcade-expressions

ArcGIS Arcade expression templates for all supported profiles in the ArcGIS platform.
Apache License 2.0
271 stars 95 forks source link

Fade symbols using TimeStamp, in relation to Map Time #17

Closed simongis closed 5 years ago

simongis commented 5 years ago

Not having much luck over on GeoNet, so figured this repo contributors could point me in the right direction.

I want to come up with a renderer, that shows points that are at the front of the time window to be entirely solid. But at the back of the time window, I want them to be pretty much transparent. So a linear stretch of opacity for the time window. Easier to take look at this example:

image

However, the above sample is web, and I believe was achieved using some JS over Arcade

My question is how to best achieve this within ArcGIS Pro with Arcade?

I am struggling to see how I can leverage the current time of the slider to drive my symbology. Can anyone point me to some similar snippets that might help me achieve this? Is it possible?

Semi related for others that might discover this issue: Unwinding the Clock Create a Time Variable for Time Enabled Data - this suggests that I might not be alone.

ekenes commented 5 years ago

I'm not sure this really is an Arcade issue. In the Visualization profile of the ArcGIS JS API, Arcade just returns data values that can be used as the basis for rendering, but it doesn't actually do anything to alter the visual properties of a renderer - for instance, it can't return an opacity value or a color, just a data value that can be mapped to those properties. This may be different in ArcGIS Pro though. I believe there is a way to return symbol properties using Arcade, not just data values there, but I'll have to defer to someone else who knows more about that product than myself.

However, the above sample is web, and I believe was achieved using some JS over Arcade

This is correct. The JS is handling the animation and the the opacity updates.

My question is how to best achieve this within ArcGIS Pro with Arcade?

I'm not sure of the answer to this. @williamscraigm might be able to point you to the right resources though.

williamscraigm commented 5 years ago

In ArcGIS Pro the color can be overidden with Attribute-driven symbology. See this topic specifically for color settings.