<?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: Odd Pan and Drawing behavior in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/odd-pan-and-drawing-behavior/m-p/442419#M40849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Query task is an asynch process. It should be OK to deactivate the drawing toolbar before the task responds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Check this thread. It may be the same issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/63149-Drawing-Tool-sometimes-locks-pan-tool-and-can-never-finish-drawing-a-polygon-polyline?p=221251#post221251"&gt;http://forums.arcgis.com/threads/63149-Drawing-Tool-sometimes-locks-pan-tool-and-can-never-finish-drawing-a-polygon-polyline?p=221251#post221251&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2012 17:45:34 GMT</pubDate>
    <dc:creator>JianHuang</dc:creator>
    <dc:date>2012-08-28T17:45:34Z</dc:date>
    <item>
      <title>Odd Pan and Drawing behavior</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/odd-pan-and-drawing-behavior/m-p/442417#M40847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm experiencing some odd conflicts with drawing and map panning (mouse drag). The sequence of events is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;toolbar.activate(esri.toolbars.Draw.EXTENT);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;toolbar.deactivate();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;toolbar.activate(esri.toolbars.Draw.POINT);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;querytask - get feature at selected point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;add returned feature to a graphics layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;toolbar.deactivate();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;toolbar.activate(esri.toolbars.Draw.POINT);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And at this point, mouse dragging to pan the map is disabled in my application. What's interesting is two things: First, if the initial toolbar activation as "EXTENT" is left off, the map dragging is not disabled. Second, when the map dragging is disabled, activating the toolbar with drawing shape "EXTENT" and then deactivating the toolbar fixes the mouse dragging to pan the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any clues or help would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve G.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;County of SLO&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 18:57:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/odd-pan-and-drawing-behavior/m-p/442417#M40847</guid>
      <dc:creator>StevenGriffith</dc:creator>
      <dc:date>2012-08-27T18:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Odd Pan and Drawing behavior</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/odd-pan-and-drawing-behavior/m-p/442418#M40848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm experiencing some odd conflicts with drawing and map panning (mouse drag). The sequence of events is:&lt;BR /&gt;&lt;BR /&gt;toolbar.activate(esri.toolbars.Draw.EXTENT);&lt;BR /&gt;toolbar.deactivate();&lt;BR /&gt;toolbar.activate(esri.toolbars.Draw.POINT);&lt;BR /&gt;querytask - get feature at selected point&lt;BR /&gt;add returned feature to a graphics layer&lt;BR /&gt;toolbar.deactivate();&lt;BR /&gt;toolbar.activate(esri.toolbars.Draw.POINT);&lt;BR /&gt;&lt;BR /&gt;And at this point, mouse dragging to pan the map is disabled in my application. What's interesting is two things: First, if the initial toolbar activation as "EXTENT" is left off, the map dragging is not disabled. Second, when the map dragging is disabled, activating the toolbar with drawing shape "EXTENT" and then deactivating the toolbar fixes the mouse dragging to pan the map.&lt;BR /&gt;&lt;BR /&gt;Any clues or help would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Steve G.&lt;BR /&gt;County of SLO&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just realized I have an error in the list of operations: The drawing toolbar is deactivated prior to the returned feature being added to a graphics layer. The correct sequence is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;toolbar.activate(esri.toolbars.Draw.EXTENT);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;toolbar.deactivate();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;toolbar.activate(esri.toolbars.Draw.POINT);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;querytask - get feature at selected point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;toolbar.deactivate();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;add returned feature to a graphics layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;toolbar.activate(esri.toolbars.Draw.POINT);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve G&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;County of SLO&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 17:35:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/odd-pan-and-drawing-behavior/m-p/442418#M40848</guid>
      <dc:creator>StevenGriffith</dc:creator>
      <dc:date>2012-08-28T17:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Odd Pan and Drawing behavior</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/odd-pan-and-drawing-behavior/m-p/442419#M40849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Query task is an asynch process. It should be OK to deactivate the drawing toolbar before the task responds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Check this thread. It may be the same issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/63149-Drawing-Tool-sometimes-locks-pan-tool-and-can-never-finish-drawing-a-polygon-polyline?p=221251#post221251"&gt;http://forums.arcgis.com/threads/63149-Drawing-Tool-sometimes-locks-pan-tool-and-can-never-finish-drawing-a-polygon-polyline?p=221251#post221251&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 17:45:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/odd-pan-and-drawing-behavior/m-p/442419#M40849</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2012-08-28T17:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Odd Pan and Drawing behavior</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/odd-pan-and-drawing-behavior/m-p/442420#M40850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Steve,&lt;BR /&gt;&lt;BR /&gt;Query task is an asynch process. It should be OK to deactivate the drawing toolbar before the task responds.&lt;BR /&gt;Check this thread. It may be the same issue:&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/63149-Drawing-Tool-sometimes-locks-pan-tool-and-can-never-finish-drawing-a-polygon-polyline?p=221251#post221251"&gt;http://forums.arcgis.com/threads/63149-Drawing-Tool-sometimes-locks-pan-tool-and-can-never-finish-drawing-a-polygon-polyline?p=221251#post221251&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand that the query is a separate issue, but there's apparently some odd internal conflict happening such that calling the querytask and adding the resulting polygon to a graphics layer triggers this problem in the drawing tool. Note that when this happens, other things that use mouse drag (such as jquery draggable items) also break. On the other hand, the early results are that following the instructions in that other thread seem to fix the problem. I'll post back with more information if the problem reappears.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve G.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 15:40:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/odd-pan-and-drawing-behavior/m-p/442420#M40850</guid>
      <dc:creator>StevenGriffith</dc:creator>
      <dc:date>2012-08-30T15:40:59Z</dc:date>
    </item>
  </channel>
</rss>

