<?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: Rotation of Label based on field in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rotation-of-label-based-on-field/m-p/345192#M31859</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can, but I'm not sure this is what you want. The &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-RotationVariable.html"&gt;RotationVariable &lt;/A&gt;can be used on a renderer, and renderers support &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol.html"&gt;Symbol&lt;/A&gt;, of which &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html"&gt;TextSymbol &lt;/A&gt;is a valid type. So this means that you can rotate a desired TextSymbol&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;based on the value of a field, but this does not mean that you can rotate individual labels of features. The text of the TextSymbol will be defined by the string input. Not sure if this is clear.&amp;nbsp;&lt;/SPAN&gt;Here's an example of rotating TextSymbol:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;A class="link-titled" href="https://codepen.io/noash/pen/QWWBVMZ" title="https://codepen.io/noash/pen/QWWBVMZ"&gt;https://codepen.io/noash/pen/QWWBVMZ&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Nov 2019 18:39:37 GMT</pubDate>
    <dc:creator>Noah-Sager</dc:creator>
    <dc:date>2019-11-11T18:39:37Z</dc:date>
    <item>
      <title>Rotation of Label based on field</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rotation-of-label-based-on-field/m-p/345189#M31856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to rotate a label based on the value of a field? The documentation for RotationValue says that it can be used with textSymbols but not how. Since labels have no visualVariables attribute I don't know where I can set a rotation definition&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2019 10:27:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rotation-of-label-based-on-field/m-p/345189#M31856</guid>
      <dc:creator>ClemensMöller</dc:creator>
      <dc:date>2019-11-08T10:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rotation of Label based on field</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rotation-of-label-based-on-field/m-p/345190#M31857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do it with code? select the rotation field in the label class&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2019 14:07:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rotation-of-label-based-on-field/m-p/345190#M31857</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2019-11-08T14:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Rotation of Label based on field</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rotation-of-label-based-on-field/m-p/345191#M31858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer but where can I select the rotation field? LabelClass doesn't have a rotation attribute and angle in TextSymbol doesn't work with fields but only with static integers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2019 14:38:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rotation-of-label-based-on-field/m-p/345191#M31858</guid>
      <dc:creator>ClemensMöller</dc:creator>
      <dc:date>2019-11-08T14:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rotation of Label based on field</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rotation-of-label-based-on-field/m-p/345192#M31859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can, but I'm not sure this is what you want. The &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-RotationVariable.html"&gt;RotationVariable &lt;/A&gt;can be used on a renderer, and renderers support &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol.html"&gt;Symbol&lt;/A&gt;, of which &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html"&gt;TextSymbol &lt;/A&gt;is a valid type. So this means that you can rotate a desired TextSymbol&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;based on the value of a field, but this does not mean that you can rotate individual labels of features. The text of the TextSymbol will be defined by the string input. Not sure if this is clear.&amp;nbsp;&lt;/SPAN&gt;Here's an example of rotating TextSymbol:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;A class="link-titled" href="https://codepen.io/noash/pen/QWWBVMZ" title="https://codepen.io/noash/pen/QWWBVMZ"&gt;https://codepen.io/noash/pen/QWWBVMZ&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2019 18:39:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rotation-of-label-based-on-field/m-p/345192#M31859</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2019-11-11T18:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Rotation of Label based on field</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rotation-of-label-based-on-field/m-p/345193#M31860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer. That's not exactly what I was looking for but probably the best I can get. Then I will create another layer from the labels and display it additionally to the other layer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Dec 2019 17:05:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rotation-of-label-based-on-field/m-p/345193#M31860</guid>
      <dc:creator>ClemensMöller</dc:creator>
      <dc:date>2019-12-01T17:05:57Z</dc:date>
    </item>
  </channel>
</rss>

