<?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: How to switch or toggle between Web maps in web app builder application? in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-switch-or-toggle-between-web-maps-in-web/m-p/882288#M14185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nikhil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You may want to look at this thread where this exact issue is discussed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/116205"&gt;Replace web map in widget code?&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Apr 2015 16:32:36 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2015-04-16T16:32:36Z</dc:date>
    <item>
      <title>How to switch or toggle between Web maps in web app builder application?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-switch-or-toggle-between-web-maps-in-web/m-p/882284#M14181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a web app builder application where I have created a widget to switch web maps in the application. The widget has buttons in it and when I click on the buttons a particular web map is needed to be loaded. Everything is working fine as per needs but the main concern is that the newly loaded web map is ordering itself below the existing web map as a res ult of which the the newly loaded web map cannot be seen. Whenever I try to change the web map using my custom widget it gets added successfully but gets added at the bottom instead of being added at the top due to which one cant see the newly added web map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I am really looking for is that when I click on my custom widget the currently shown web map should be hidden and a new web map should be loaded.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any helps or suggestions would be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 16:07:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-switch-or-toggle-between-web-maps-in-web/m-p/882284#M14181</guid>
      <dc:creator>NikhilSharma</dc:creator>
      <dc:date>2015-04-15T16:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to switch or toggle between Web maps in web app builder application?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-switch-or-toggle-between-web-maps-in-web/m-p/882285#M14182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's a sample in the ArcGIS API for JavaScript resource center that shows how to switch maps when clicking a link. In this sample the old map is destroyed and a new one created. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/ags_fade_webmaps.html" title="https://developers.arcgis.com/javascript/jssamples/ags_fade_webmaps.html"&gt;Fade effect using ArcGIS.com web maps | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 16:36:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-switch-or-toggle-between-web-maps-in-web/m-p/882285#M14182</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2015-04-15T16:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to switch or toggle between Web maps in web app builder application?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-switch-or-toggle-between-web-maps-in-web/m-p/882286#M14183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kelly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for valuable inputs. I will try implementing the same with my web app builder app and will let you know about the progress.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 17:11:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-switch-or-toggle-between-web-maps-in-web/m-p/882286#M14183</guid>
      <dc:creator>NikhilSharma</dc:creator>
      <dc:date>2015-04-15T17:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to switch or toggle between Web maps in web app builder application?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-switch-or-toggle-between-web-maps-in-web/m-p/882287#M14184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kelly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to integrate the sample in my web app builder project and was able switch the web maps successfully but this leaded to two more problems.&lt;/P&gt;&lt;P&gt;The sample uses &lt;SPAN class="pln" style="color: #595959;"&gt;Map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt;destroy&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(); method which destroys the map instance and w hen I do that it creates two problems:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;1. All the widgets which are a part of map container disappear.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;2. The legend and layer list widget are not being updated but show the content for the previously loaded web map instead for the new web map.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;Can their be any other approach instead of using &lt;SPAN class="pln" style="color: #595959;"&gt;Map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #595959;"&gt;destroy&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(); method as this method creates problems in web app builder application because the other widgets behave as per the previously loaded web map not the newly loaded web map and also the widgets which are part of the map container disappear.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;Thanks,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;Nikhil&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 15:53:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-switch-or-toggle-between-web-maps-in-web/m-p/882287#M14184</guid>
      <dc:creator>NikhilSharma</dc:creator>
      <dc:date>2015-04-16T15:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to switch or toggle between Web maps in web app builder application?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-switch-or-toggle-between-web-maps-in-web/m-p/882288#M14185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nikhil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You may want to look at this thread where this exact issue is discussed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/116205"&gt;Replace web map in widget code?&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 16:32:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-switch-or-toggle-between-web-maps-in-web/m-p/882288#M14185</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-04-16T16:32:36Z</dc:date>
    </item>
  </channel>
</rss>

