<?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: Unique value renderer with field based rotation of points in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unique-value-renderer-with-field-based-rotation-of/m-p/207115#M19249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes - I can see that may help.&amp;nbsp; However I still have the problem of separating the users as well as the direction, So Fred North East should be blue and Joe North East should be red, but both the same shape.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can see your solution working on part of the project, where a manager selects a particular user to spy on , sorry track, where the only markers displayed are that user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So maybe, two render functions.&amp;nbsp; One for an overview where the manager can see all the users.&amp;nbsp; The the other when a specific user is selected, where direction of travel is indicated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll run that one past the chap who is pulling this together tomorrow &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Apr 2013 15:52:32 GMT</pubDate>
    <dc:creator>AdrianMarsden</dc:creator>
    <dc:date>2013-04-29T15:52:32Z</dc:date>
    <item>
      <title>Unique value renderer with field based rotation of points</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unique-value-renderer-with-field-based-rotation-of/m-p/207113#M19247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been asked to produce a feature layer that has details of staff, their locations and direction of travel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am provided with a SQL table that contains the name, XY and Rotation Angle.&amp;nbsp; Which by default I add as an event theme in ArcMap and publish as a service.&amp;nbsp; I can see three ways of doing what is wanted.&lt;/SPAN&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Handle all this in ArcMap and publish the service.&amp;nbsp; the problem is that when new users are added I need to add them to the class definitions.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Use &lt;SPAN style="color:#000000;"&gt;esri&lt;/SPAN&gt;&lt;SPAN style="color:#666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;renderer&lt;/SPAN&gt;&lt;SPAN style="color:#666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color:#000000;"&gt;UniqueValueRenderer to set the render at runtime, but I can't see a way to include the record specific rotation, but it will allow me to change the render based on all users found in the layer (a simple group by somewhere should do this)&lt;/SPAN&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;SPAN style="color:#000000;"&gt;Don't add the feature layer to the map, bu loop through it where field value equals selected name, add a new graphic with rotation pulled from the record attribute.&lt;/SPAN&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;As I see it all these have flaws, but I'm no expert.&amp;nbsp; So advice more than welcome.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 12:58:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unique-value-renderer-with-field-based-rotation-of/m-p/207113#M19247</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2013-04-29T12:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unique value renderer with field based rotation of points</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unique-value-renderer-with-field-based-rotation-of/m-p/207114#M19248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How about using a classBreaksRenderer based on the rotation angle? Assign an arrow symbol based on that value. Assuming that north is zero,you would have something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;renderer.addBreak({
&amp;nbsp; minValue: 0,
&amp;nbsp; maxValue: 15,
&amp;nbsp; symbol: symbol,
&amp;nbsp; label: "North"
});
renderer.addBreak({
&amp;nbsp; minValue: 16,
&amp;nbsp; maxValue: 65,
&amp;nbsp; symbol: symbol,
&amp;nbsp; label: "Northeast"
});
renderer.addBreak({
&amp;nbsp; minValue: 66,
&amp;nbsp; maxValue: 115,
&amp;nbsp; symbol: symbol,
&amp;nbsp; label: "East"
});
renderer.addBreak({
&amp;nbsp; minValue: 116,
&amp;nbsp; maxValue: 155,
&amp;nbsp; symbol: symbol,
&amp;nbsp; label: "Southeast"
});&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You get the idea...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:13:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unique-value-renderer-with-field-based-rotation-of/m-p/207114#M19248</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2021-12-11T10:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unique value renderer with field based rotation of points</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unique-value-renderer-with-field-based-rotation-of/m-p/207115#M19249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes - I can see that may help.&amp;nbsp; However I still have the problem of separating the users as well as the direction, So Fred North East should be blue and Joe North East should be red, but both the same shape.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can see your solution working on part of the project, where a manager selects a particular user to spy on , sorry track, where the only markers displayed are that user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So maybe, two render functions.&amp;nbsp; One for an overview where the manager can see all the users.&amp;nbsp; The the other when a specific user is selected, where direction of travel is indicated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll run that one past the chap who is pulling this together tomorrow &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 15:52:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unique-value-renderer-with-field-based-rotation-of/m-p/207115#M19249</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2013-04-29T15:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unique value renderer with field based rotation of points</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unique-value-renderer-with-field-based-rotation-of/m-p/207116#M19250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Depending on how many people (or divisions, etc), perhaps you can create a featureLayer for each person/grouping using a definition query on your table in the service. That way, you still use the basic classBreaksRenderer but just change the symbol used for each layer (red arrow set, green, blue, yellow, etc).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 16:10:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unique-value-renderer-with-field-based-rotation-of/m-p/207116#M19250</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2013-04-29T16:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unique value renderer with field based rotation of points</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unique-value-renderer-with-field-based-rotation-of/m-p/207117#M19251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;True, but that hits the problem I mentioned before, in that if new users are added I have to tweak the service, in which case I can get ArcMap to do the rotation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 16:32:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unique-value-renderer-with-field-based-rotation-of/m-p/207117#M19251</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2013-04-29T16:32:47Z</dc:date>
    </item>
  </channel>
</rss>

