<?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 Exception when using Graphic.setSymbol on a graphic not visible in current extent. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/exception-when-using-graphic-setsymbol-on-a/m-p/158284#M14773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For reference, we are currently using the 1.5 stand-alone version of the JavaScript API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've encountered an issue using the setSymbol function on a graphic that is not visible in current view extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Specifically, I'm adding a polyline and then changing it's symbol inside a function that also contains some other functionality that marks the line as "selected".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If any part of the polyline is visible at the time setSymbol is called, the function completes.&amp;nbsp; However, if no part of the polyline is visible when setSymbol is called, and exception is triggered the and remainder of function that invokes setSymbol is not executed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've used Firebug to trace the stack as best I can and the issue seems to occur inside the Dojo library when the JavaScript API is performing enumeration of some kind.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got a couple of ideas on how I could avoid this issue by panning to ensure part of the line is visible or having the symbology for the line setup initially setup in the desired "selected" state.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Either way, I do think the library should correctly handle changing the symbol of a non-visible graphic.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 May 2010 17:54:03 GMT</pubDate>
    <dc:creator>KyleOverby</dc:creator>
    <dc:date>2010-05-06T17:54:03Z</dc:date>
    <item>
      <title>Exception when using Graphic.setSymbol on a graphic not visible in current extent.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/exception-when-using-graphic-setsymbol-on-a/m-p/158284#M14773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For reference, we are currently using the 1.5 stand-alone version of the JavaScript API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've encountered an issue using the setSymbol function on a graphic that is not visible in current view extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Specifically, I'm adding a polyline and then changing it's symbol inside a function that also contains some other functionality that marks the line as "selected".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If any part of the polyline is visible at the time setSymbol is called, the function completes.&amp;nbsp; However, if no part of the polyline is visible when setSymbol is called, and exception is triggered the and remainder of function that invokes setSymbol is not executed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've used Firebug to trace the stack as best I can and the issue seems to occur inside the Dojo library when the JavaScript API is performing enumeration of some kind.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got a couple of ideas on how I could avoid this issue by panning to ensure part of the line is visible or having the symbology for the line setup initially setup in the desired "selected" state.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Either way, I do think the library should correctly handle changing the symbol of a non-visible graphic.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 17:54:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/exception-when-using-graphic-setsymbol-on-a/m-p/158284#M14773</guid>
      <dc:creator>KyleOverby</dc:creator>
      <dc:date>2010-05-06T17:54:03Z</dc:date>
    </item>
  </channel>
</rss>

