<?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 Graphics Layer graphics redraw incorrectly after zoom in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-layer-graphics-redraw-incorrectly-after/m-p/554511#M51703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a web application that has several Graphics Layers, with ArcGIS JS API&amp;nbsp; 3.8 (AMD).&amp;nbsp; These layers add Picture Marker Symbols at specific and unique angles to the midpoints of line segments, which are located by a query.&amp;nbsp; The angle is calculated by finding the each line segment's beginning and end nodes, and using those x/y coordinates to calculate the bearing (the picture is an arrow, signifying street direction).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is working for the initial rendering of the graphics, but if I zoom in or out of the map, the graphics redraw all alt the same angle.&amp;nbsp; My guess is that this has something to do with the timing of the rendering; the graphics are rendering before the correct angle for each new graphic is re-calculated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I correct this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2015 21:47:30 GMT</pubDate>
    <dc:creator>deleted-user-ugCMpXci8bn5</dc:creator>
    <dc:date>2015-04-17T21:47:30Z</dc:date>
    <item>
      <title>Graphics Layer graphics redraw incorrectly after zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-layer-graphics-redraw-incorrectly-after/m-p/554511#M51703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a web application that has several Graphics Layers, with ArcGIS JS API&amp;nbsp; 3.8 (AMD).&amp;nbsp; These layers add Picture Marker Symbols at specific and unique angles to the midpoints of line segments, which are located by a query.&amp;nbsp; The angle is calculated by finding the each line segment's beginning and end nodes, and using those x/y coordinates to calculate the bearing (the picture is an arrow, signifying street direction).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is working for the initial rendering of the graphics, but if I zoom in or out of the map, the graphics redraw all alt the same angle.&amp;nbsp; My guess is that this has something to do with the timing of the rendering; the graphics are rendering before the correct angle for each new graphic is re-calculated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I correct this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 21:47:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-layer-graphics-redraw-incorrectly-after/m-p/554511#M51703</guid>
      <dc:creator>deleted-user-ugCMpXci8bn5</dc:creator>
      <dc:date>2015-04-17T21:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics Layer graphics redraw incorrectly after zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-layer-graphics-redraw-incorrectly-after/m-p/554512#M51704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem was that I was calculating the angle for the marker symbol variable, rather than each instance of the symbol added to the graphics array.&amp;nbsp; I changed the loop where the graphics are added, so that each new addition created a new instance of the marker symbol with its own angle calculated.&amp;nbsp; Now the orientation of the symbol stays consistent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 13:44:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-layer-graphics-redraw-incorrectly-after/m-p/554512#M51704</guid>
      <dc:creator>deleted-user-ugCMpXci8bn5</dc:creator>
      <dc:date>2015-04-24T13:44:59Z</dc:date>
    </item>
  </channel>
</rss>

