<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ValueExpression with VIEW props with UniqueValueRenderer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/valueexpression-with-view-props-with/m-p/1582637#M86472</link>
    <description>&lt;P&gt;Any news about this one? An idea&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2025 12:52:19 GMT</pubDate>
    <dc:creator>michaelpoa</dc:creator>
    <dc:date>2025-02-06T12:52:19Z</dc:date>
    <item>
      <title>ValueExpression with VIEW props with UniqueValueRenderer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/valueexpression-with-view-props-with/m-p/1384826#M83694</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;($view.night == 1), 'night'&lt;/SPAN&gt;&lt;SPAN&gt;, 'day'&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;But unfortunately it's not possible to add custom attributes to the view and it's not possible to use $view.night with valueExpressions:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/profiles/visualization/#profile-variables" target="_blank"&gt;https://developers.arcgis.com/arcade/profiles/visualization/#profile-variables&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Why is view.scale the only one ?&lt;/P&gt;&lt;P&gt;And how to achieve dark / light without updating all features when toggling to dark or light&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Feb 2024 11:58:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/valueexpression-with-view-props-with/m-p/1384826#M83694</guid>
      <dc:creator>michaelpoa</dc:creator>
      <dc:date>2024-02-21T11:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: ValueExpression with VIEW props with UniqueValueRenderer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/valueexpression-with-view-props-with/m-p/1582637#M86472</link>
      <description>&lt;P&gt;Any news about this one? An idea&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 12:52:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/valueexpression-with-view-props-with/m-p/1582637#M86472</guid>
      <dc:creator>michaelpoa</dc:creator>
      <dc:date>2025-02-06T12:52:19Z</dc:date>
    </item>
  </channel>
</rss>

