<?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 IIs it possible to rotate a feature based on a column? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/iis-it-possible-to-rotate-a-feature-based-on-a/m-p/243685#M22552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to get a feature and rotate the graphic based upon a field of data in that feature?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was a good tutorial, &lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/renderer_proportional_with_rotation.html" title="https://developers.arcgis.com/javascript/jssamples/renderer_proportional_with_rotation.html"&gt;Renderer with proportional symbols and rotation | ArcGIS API for JavaScript&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, I was able to see how to rotate and scale simple markers, how would I grab the current graphic for a feature and then rotate it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Morgan &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Mar 2015 18:09:55 GMT</pubDate>
    <dc:creator>MorganEverett</dc:creator>
    <dc:date>2015-03-11T18:09:55Z</dc:date>
    <item>
      <title>IIs it possible to rotate a feature based on a column?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/iis-it-possible-to-rotate-a-feature-based-on-a/m-p/243685#M22552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to get a feature and rotate the graphic based upon a field of data in that feature?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was a good tutorial, &lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/renderer_proportional_with_rotation.html" title="https://developers.arcgis.com/javascript/jssamples/renderer_proportional_with_rotation.html"&gt;Renderer with proportional symbols and rotation | ArcGIS API for JavaScript&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, I was able to see how to rotate and scale simple markers, how would I grab the current graphic for a feature and then rotate it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Morgan &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 18:09:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/iis-it-possible-to-rotate-a-feature-based-on-a/m-p/243685#M22552</guid>
      <dc:creator>MorganEverett</dc:creator>
      <dc:date>2015-03-11T18:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: IIs it possible to rotate a feature based on a column?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/iis-it-possible-to-rotate-a-feature-based-on-a/m-p/243686#M22553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached a sample to rotate graphics point feature based on a field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 19:25:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/iis-it-possible-to-rotate-a-feature-based-on-a/m-p/243686#M22553</guid>
      <dc:creator>MahtabAlam1</dc:creator>
      <dc:date>2015-03-11T19:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: IIs it possible to rotate a feature based on a column?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/iis-it-possible-to-rotate-a-feature-based-on-a/m-p/243687#M22554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works, but I would like to grab the features from a layer, and use the graphics they have configured already and just rotate the graphic based upon a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a layer of points with a custom graphic on it, and based upon a heading field I want to render the graphic to point different ways.&amp;nbsp; Do I have to get the collection of features from the layer, and add them to the map in javascript, or can set something on the layer in javascript and then just add that layer to the map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 19:54:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/iis-it-possible-to-rotate-a-feature-based-on-a/m-p/243687#M22554</guid>
      <dc:creator>MorganEverett</dc:creator>
      <dc:date>2015-03-11T19:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: IIs it possible to rotate a feature based on a column?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/iis-it-possible-to-rotate-a-feature-based-on-a/m-p/243688#M22555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case you can simply apply the render for your layer. It's there in the sample that you are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var markerSym = new SimpleMarkerSymbol().setPath("M14.5,29 23.5,0 14.5,9 5.5,0z");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; markerSym.setOutline(new SimpleLineSymbol().setWidth(0.5));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; markerSym.setColor(new Color("red"));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var renderer = new SimpleRenderer(markerSym);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; renderer.setRotationInfo({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field:"WIND_DIRECT",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type:"geographic"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; renderer.setSizeInfo({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field:"WIND_SPEED",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; minSize:3,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxSize:20,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; minDataValue:5,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxDataValue:50
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer.setRenderer(renderer);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:10:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/iis-it-possible-to-rotate-a-feature-based-on-a/m-p/243688#M22555</guid>
      <dc:creator>MahtabAlam1</dc:creator>
      <dc:date>2021-12-11T12:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: IIs it possible to rotate a feature based on a column?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/iis-it-possible-to-rotate-a-feature-based-on-a/m-p/243689#M22556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to get my current renderer for my feature layer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it always null when i try and get it from the feature layer class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 21:07:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/iis-it-possible-to-rotate-a-feature-based-on-a/m-p/243689#M22556</guid>
      <dc:creator>MorganEverett</dc:creator>
      <dc:date>2015-03-11T21:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: IIs it possible to rotate a feature based on a column?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/iis-it-possible-to-rotate-a-feature-based-on-a/m-p/243690#M22557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For FeatureLayer, I think it will be null unless you define it at client side. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can consider using ArcGISDynamicMapServiceLayer&amp;nbsp; and it's &lt;SPAN style="color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;DynamicLayerInfos which can return the current rendering information.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 21:48:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/iis-it-possible-to-rotate-a-feature-based-on-a/m-p/243690#M22557</guid>
      <dc:creator>MahtabAlam1</dc:creator>
      <dc:date>2015-03-11T21:48:16Z</dc:date>
    </item>
  </channel>
</rss>

