<?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: Deactive Drawing in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/deactive-drawing/m-p/679713#M20654</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ray,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; You can look in MapManager.mxml and see that choosing a navigation tool automatically disables the drawing tool. Look at changeNavigation function.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Apr 2011 12:47:31 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2011-04-04T12:47:31Z</dc:date>
    <item>
      <title>Deactive Drawing</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/deactive-drawing/m-p/679710#M20651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I have the following method on a widget that sets the map action and allow the user to draw on the map. This method is called once the widget is initialized.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
private function activateSearchTool(value:String):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp; // some code up here&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setMapAction(value, status, searchDrawEnd);&amp;nbsp; 
&amp;nbsp;&amp;nbsp; }&amp;nbsp; 
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the map tools (zoomin,zoom out etc) in a seperate component;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
private function PanMap(event:MouseEvent):void{
&amp;nbsp;&amp;nbsp; navToolBar.activate(Navigation.PAN,true);
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that after using the widget, if i select the pan tool it activates the pan functionality but it also draws on the map while panning. is there anyway to disable the drawing while panning but keeping the drawn (graphic Layer)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 10:47:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/deactive-drawing/m-p/679710#M20651</guid>
      <dc:creator>FaizanTayyab</dc:creator>
      <dc:date>2011-03-30T10:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Deactive Drawing</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/deactive-drawing/m-p/679711#M20652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Faizan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; All you need to do is add this line to your searchDrawEnd function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;event.target.deactivate();&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 11:31:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/deactive-drawing/m-p/679711#M20652</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-03-30T11:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Deactive Drawing</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/deactive-drawing/m-p/679712#M20653</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;BR /&gt;&lt;SPAN&gt;I have the opposite problem.&amp;nbsp; I use the 'old style' pan and zoom tools on a version 2.2 viewer.&amp;nbsp; I would like the drawing tools to remain active rather than deactivate at the end of each selection. Th eidea is that the user might want ot make multiple selections and having to repeatedly select the drawing tool is a bit frustrating. So I have removed the line of code suggested by Robert above (event.target.deactivate();) in my Drawend method.&amp;nbsp; However, this fix only works the first time the tool is used.&amp;nbsp; That is to say, I can make as many selections as I like without the tool deactivating, once the tool is open for the firts time in a session, but as soon as I close it and select another tool (pan, zoom etc), my drawing widget reverts to deactivating after a single selection.&amp;nbsp; Any ideas?&amp;nbsp; This behaviour is really baffling!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 12:06:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/deactive-drawing/m-p/679712#M20653</guid>
      <dc:creator>RaymondBlack</dc:creator>
      <dc:date>2011-04-04T12:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Deactive Drawing</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/deactive-drawing/m-p/679713#M20654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ray,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; You can look in MapManager.mxml and see that choosing a navigation tool automatically disables the drawing tool. Look at changeNavigation function.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 12:47:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/deactive-drawing/m-p/679713#M20654</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-04-04T12:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Deactive Drawing</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/deactive-drawing/m-p/679714#M20655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That got me looking in the right direction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;++ Ray&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 13:51:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/deactive-drawing/m-p/679714#M20655</guid>
      <dc:creator>RaymondBlack</dc:creator>
      <dc:date>2011-04-04T13:51:45Z</dc:date>
    </item>
  </channel>
</rss>

