<?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 Using returned Arcade value as input to Rotational Render field value in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-returned-arcade-value-as-input-to-rotational/m-p/1268542#M80576</link>
    <description>&lt;P&gt;I am wanting to rotate a symbol as in the example&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=visualization-vv-rotation" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=visualization-vv-rotation&lt;/A&gt;. However in my case there is no field in the FeatureLayer that can be used for the "field" value in the rotationVisualVariable. I would like to use the returned value of an Arcade expression for this field in the rotationVisualVariable. Specifically I need to convert a string (found in the FeatureLayer)&amp;nbsp; such as "North East" to a number 45, which represents degrees. Or "South East" to 135.&lt;/P&gt;&lt;P&gt;I do not know how to get this returned Arcade value into the rotational Renderer.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2023 15:38:26 GMT</pubDate>
    <dc:creator>ChrisSchmeissner</dc:creator>
    <dc:date>2023-03-16T15:38:26Z</dc:date>
    <item>
      <title>Using returned Arcade value as input to Rotational Render field value</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-returned-arcade-value-as-input-to-rotational/m-p/1268542#M80576</link>
      <description>&lt;P&gt;I am wanting to rotate a symbol as in the example&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=visualization-vv-rotation" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=visualization-vv-rotation&lt;/A&gt;. However in my case there is no field in the FeatureLayer that can be used for the "field" value in the rotationVisualVariable. I would like to use the returned value of an Arcade expression for this field in the rotationVisualVariable. Specifically I need to convert a string (found in the FeatureLayer)&amp;nbsp; such as "North East" to a number 45, which represents degrees. Or "South East" to 135.&lt;/P&gt;&lt;P&gt;I do not know how to get this returned Arcade value into the rotational Renderer.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 15:38:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-returned-arcade-value-as-input-to-rotational/m-p/1268542#M80576</guid>
      <dc:creator>ChrisSchmeissner</dc:creator>
      <dc:date>2023-03-16T15:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using returned Arcade value as input to Rotational Render field value</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-returned-arcade-value-as-input-to-rotational/m-p/1269062#M80589</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/127"&gt;@ChrisSchmeissner&lt;/a&gt;&amp;nbsp;- you can use the "valueExpression" property instead of "field" to base the rotation visual variable off of an Arcade expression:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-RotationVariable.html#valueExpression" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-RotationVariable.html#valueExpression&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 17:52:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-returned-arcade-value-as-input-to-rotational/m-p/1269062#M80589</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2023-03-17T17:52:35Z</dc:date>
    </item>
  </channel>
</rss>

