<?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 executable icon to header area in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-executable-icon-to-header-area/m-p/475430#M13383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;esri has this in the local government site:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/localgovernment/10.1/index.html#/What_is_Public_Safety_Common_Operational_Picture_COP/028s0000001w000000/"&gt;http://resources.arcgis.com/en/help/localgovernment/10.1/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it looks like it might do what you want to do with a bit of adaptation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jan 2013 13:57:52 GMT</pubDate>
    <dc:creator>JacobBoyle</dc:creator>
    <dc:date>2013-01-16T13:57:52Z</dc:date>
    <item>
      <title>Add executable icon to header area</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-executable-icon-to-header-area/m-p/475429#M13382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Currently I have a widget that allows users to display certain map layouts.&amp;nbsp; All it basically does is turn layers on/off programmatically based up which map they want to see (see graphic).&amp;nbsp; I would like to have three icons instead of the widget on the Header.&amp;nbsp; ie:&amp;nbsp; "Zoning Map", "Flood Map", " City Map" that would essentially do the same thing when the icon was clicked.&amp;nbsp; Is this a possibility?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]20761[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Luci&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 13:00:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-executable-icon-to-header-area/m-p/475429#M13382</guid>
      <dc:creator>LuciHawkins</dc:creator>
      <dc:date>2013-01-16T13:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Add executable icon to header area</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-executable-icon-to-header-area/m-p/475430#M13383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;esri has this in the local government site:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/localgovernment/10.1/index.html#/What_is_Public_Safety_Common_Operational_Picture_COP/028s0000001w000000/"&gt;http://resources.arcgis.com/en/help/localgovernment/10.1/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it looks like it might do what you want to do with a bit of adaptation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 13:57:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-executable-icon-to-header-area/m-p/475430#M13383</guid>
      <dc:creator>JacobBoyle</dc:creator>
      <dc:date>2013-01-16T13:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add executable icon to header area</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-executable-icon-to-header-area/m-p/475431#M13384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good Afternoon,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked at the different apps and I couldnt find what I am looking for.&amp;nbsp; On a side note, we have been waiting to upgrade to 10.1 so we can do advanced printing, etc.&amp;nbsp; Our new server should be here in a month or so and we will be upgrading then.&amp;nbsp; Maybe at that time we can implement some of the newer stuff.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created a web page with three icons that allow users to begin flexviewer with different config.xml files.&amp;nbsp; That was the first method I tried in controlling which map layers were visible, but it is only good upon startup.&amp;nbsp; They didnt really like that.&amp;nbsp; So, I added the widget where users click on the widget icon which opens up a widget window with three buttons.&amp;nbsp; Depending on which of the three button they choose, layers are turned on/off programmatically.&amp;nbsp; They dont really like that either.&amp;nbsp; They are afraid people will not know to click on the icon.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I just want those three buttons on the header instead of wrapped up in a widget.&amp;nbsp; I am not a programmer by schooling, so I am hacking my way through and trying to learn the proper methods as time allows. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Luci&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 16:17:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-executable-icon-to-header-area/m-p/475431#M13384</guid>
      <dc:creator>LuciHawkins</dc:creator>
      <dc:date>2013-01-16T16:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Add executable icon to header area</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-executable-icon-to-header-area/m-p/475432#M13385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is some code I use to turn on and off map services.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var lyrObject:Object=new Object;
lyrObject.label = msName;
&amp;nbsp; 
var msIndex:int=map.layerIds.indexOf(msName);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
lyrObject.id=msIndex.toString();
lyrObject.layer=map.layers[msIndex]; 
lyrObject.visible=true;
AppEvent.dispatch(AppEvent.MAP_LAYER_VISIBLE, lyrObject);&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Where msName is the value of the label property when you added the layer to config.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To turn a layer off change .visible to false.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Watch the video for creating custom widget if you haven't yet and create a custom widget to turn on and off the map services as desired using code like this.&amp;nbsp; Set it up so you can configure the msName.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good Luck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:01:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/add-executable-icon-to-header-area/m-p/475432#M13385</guid>
      <dc:creator>DanJensen</dc:creator>
      <dc:date>2021-12-11T21:01:08Z</dc:date>
    </item>
  </channel>
</rss>

