<?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: Add identify button to navigation widget in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-identify-button-to-navigation-widget/m-p/151380#M4854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Works perfectly thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2013 06:09:46 GMT</pubDate>
    <dc:creator>AnthonyGiles</dc:creator>
    <dc:date>2013-01-18T06:09:46Z</dc:date>
    <item>
      <title>Add identify button to navigation widget</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-identify-button-to-navigation-widget/m-p/151377#M4851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to add an icon to the navigation widget that opens up the identify widget, i.e:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]20812[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have managed to do this by adding the following to the navigation.mxml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in the array collection for the images added:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;s:ArrayCollection&amp;gt;
&amp;lt;fx:Object action="pan" imageIcon="assets/images/i_pan.png" label="{LocalizationUtil.getDefaultString('panLabel')}"/&amp;gt;
&amp;lt;fx:Object action="zoomin" imageIcon="assets/images/i_zoomin.png" label="{LocalizationUtil.getDefaultString('zoomInLabel')}" visible="false"/&amp;gt;
&amp;lt;fx:Object action="zoomout" imageIcon="assets/images/i_zoomout.png" label="{LocalizationUtil.getDefaultString('zoomOutLabel')}"/&amp;gt;
&amp;lt;fx:Object action="identify" imageIcon="assets/images/i_identify.png" label="Identify" /&amp;gt;
&amp;lt;/s:ArrayCollection&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and then changed the doNavAction function to the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private function doNavAction(action:String, label:String):void
{
&amp;nbsp;&amp;nbsp; var data:Object =
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tool: action,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status: label
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; if(data.tool == "identify")
&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AppEvent.dispatch(AppEvent.WIDGET_RUN, ViewerContainer.getInstance().widgetManager.getWidgetId("Identify"));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AppEvent.dispatch(AppEvent.SET_MAP_NAVIGATION, {tool: "Pan",status: "Pan"});
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; else
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; AppEvent.dispatch(AppEvent.SET_MAP_NAVIGATION, data);
&amp;nbsp; }
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This opens up the identify widget as expected and sets the map navigation back to pan, but unfortunatly it does not change the selected icon to the pan icon, how can I represent a mouse click on the pan icon using code,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:06:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-identify-button-to-navigation-widget/m-p/151377#M4851</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2021-12-12T16:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Add identify button to navigation widget</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-identify-button-to-navigation-widget/m-p/151378#M4852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Anthony,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Try this:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;private function doNavAction(action:String, label:String):void {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var data:Object ={
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tool: action,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status: label
&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp;&amp;nbsp; if(data.tool == "identify"){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AppEvent.dispatch(AppEvent.WIDGET_RUN, ViewerContainer.getInstance().widgetManager.getWidgetId("Identify"));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AppEvent.dispatch(AppEvent.SET_MAP_NAVIGATION, {tool: "pan",status: "Pan"});
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var timeoutExample:uint = setTimeout(function():void{btnBar.selectedIndex = 0;},500);
&amp;nbsp;&amp;nbsp; }else{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AppEvent.dispatch(AppEvent.SET_MAP_NAVIGATION, data);
&amp;nbsp;&amp;nbsp; };
}&lt;/PRE&gt;&lt;/PRE&gt;&lt;DIV style="display: none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:07:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-identify-button-to-navigation-widget/m-p/151378#M4852</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T08:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Add identify button to navigation widget</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-identify-button-to-navigation-widget/m-p/151379#M4853</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;I'll give it a try when I'm in work tomorrow and yet you know how I get on&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 19:43:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-identify-button-to-navigation-widget/m-p/151379#M4853</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2013-01-17T19:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Add identify button to navigation widget</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-identify-button-to-navigation-widget/m-p/151380#M4854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Works perfectly thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 06:09:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-identify-button-to-navigation-widget/m-p/151380#M4854</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2013-01-18T06:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Add identify button to navigation widget</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-identify-button-to-navigation-widget/m-p/151381#M4855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use same code but timer clock is not going away even after adding timer. What shall i do now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 08:56:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-identify-button-to-navigation-widget/m-p/151381#M4855</guid>
      <dc:creator>SaurabhGupta5</dc:creator>
      <dc:date>2015-02-13T08:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Add identify button to navigation widget</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-identify-button-to-navigation-widget/m-p/151382#M4856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Saurabh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Did you add the import for ViewerContainer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14238361377025947" jivemacro_uid="_14238361377025947"&gt;&lt;P&gt;import com.esri.viewer.ViewerContainer;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you need to add the following line to the&amp;nbsp; initButtonBar function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1423836896388774" jivemacro_uid="_1423836896388774"&gt;&lt;P&gt;navAC.addItem({ label: "Identify", action: "identify", imageIcon: "assets/images/i_info.png" });&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 14:02:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-identify-button-to-navigation-widget/m-p/151382#M4856</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-02-13T14:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Add identify button to navigation widget</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-identify-button-to-navigation-widget/m-p/151383#M4857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi robert, yes i made it working now. thanks but i want to do something different instead of opening existing widget from this location. i have started new thread for same.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/121735"&gt;Help on identify tool&lt;/A&gt;hel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 15:17:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-identify-button-to-navigation-widget/m-p/151383#M4857</guid>
      <dc:creator>SaurabhGupta5</dc:creator>
      <dc:date>2015-02-13T15:17:01Z</dc:date>
    </item>
  </channel>
</rss>

