I'm implementing a 'light-dark-toggle" button to choose between these 2 themes. Currently I have 1 uniqueValueRenderer with a attribute FIELD. I was trying to add an attribute to the view object and using this value to check for light / dark mode.
($view.night == 1), 'night', 'day'
But unfortunately it's not possible to add custom attributes to the view and it's not possible to use $view.night with valueExpressions:
https://developers.arcgis.com/arcade/profiles/visualization/#profile-variables
Why is view.scale the only one ?
And how to achieve dark / light without updating all features when toggling to dark or light
Thanks
Any news about this one? An idea
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.