<?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: Using javascript switch method in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascript-switch-method/m-p/177322#M16442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brandon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I don't deal with Story maps at all so I am not sure the exact code as I don't have an app to reference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Nov 2017 15:29:48 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2017-11-28T15:29:48Z</dc:date>
    <item>
      <title>Using javascript switch method</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascript-switch-method/m-p/177319#M16439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am customizing a story map running on arcgis api 3.22. I am&amp;nbsp;trying to use the switch javascript method to remove the basemap toggle on some of the tabs. This is what I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let tabs = $('.entries &amp;gt; .nav &amp;gt; .entry &amp;gt; .entryLbl ');&lt;BR /&gt; tabs.each(function (idx, liItem) {&lt;BR /&gt; switch (liItem.text) {&lt;BR /&gt; case 'Electric':&lt;BR /&gt; //liItem.on('click', function () {&lt;BR /&gt; // console.log('got a click on electric');&lt;BR /&gt; //});&lt;BR /&gt; liItem.setAttribute('title', 'To download a Los Angeles Substructure Plan: \n 1. Zoom to a substructure quad\n 2. Click the area inside the quad \n 3. Click "More info"');&lt;BR /&gt; break;&lt;BR /&gt; case 'Gas/Oil':&lt;BR /&gt;&lt;SPAN&gt; liItem.setAttribute('title', 'This tab contains non-hazardous gas/oil utilities. Visit our confidential \n gas/oil application at: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fsv07gis6%2Fundergroundconfidential%27%29%3B" rel="nofollow" target="_blank"&gt;http://sv07gis6/undergroundconfidential');&lt;/A&gt;&lt;BR /&gt; break;&lt;BR /&gt; case 'Sanitation':&lt;BR /&gt;&lt;SPAN&gt; liItem.setAttribute('title', 'Download LA City SanGIS Data in its entirety at:\n &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fgeohub.lacity.org%2Fdatasets%3Fq%3Dsewer" rel="nofollow" target="_blank"&gt;http://geohub.lacity.org/datasets?q=sewer&lt;/A&gt;&lt;SPAN&gt; \nDownload LACSD GIS Data in its entirety at:\n &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fdata-lacsdgis.opendata.arcgis.com%27%29%3B" rel="nofollow" target="_blank"&gt;http://data-lacsdgis.opendata.arcgis.com');&lt;/A&gt;&lt;BR /&gt; break;&lt;BR /&gt; case 'Stormwater':&lt;BR /&gt;&lt;SPAN&gt; liItem.setAttribute('title', 'Download LA County Stormwater GIS Data in its entirety at: \n &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fdpw.lacounty.gov%2Ffcd%2Fstormdrain%2Fdisclaimer.cfm" rel="nofollow" target="_blank"&gt;http://dpw.lacounty.gov/fcd/stormdrain/disclaimer.cfm&lt;/A&gt;&lt;SPAN&gt; \n and click "File Geodatabase Download"');&lt;/SPAN&gt;&lt;BR /&gt; break;&lt;BR /&gt; case 'Download':&lt;BR /&gt; liItem.setAttribute('title', 'Use this tab to download snippets of all utility types within\n up to a 500-foot range in .shp or .dgn formats');&lt;BR /&gt; break;&lt;BR /&gt; case 'Resources':&lt;BR /&gt; liItem.setAttribute('title', 'Please contact D7GIS to help with our resources list');&lt;BR /&gt; break;&lt;BR /&gt; }&lt;BR /&gt; })&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/community/gis/web-gis/storymaps?sr=search&amp;amp;searchId=78ff8351-2ac6-4ff5-aac4-163acd1a492e&amp;amp;searchIndex=0"&gt;https://community.esri.com/community/gis/web-gis/storymaps?sr=search&amp;amp;searchId=78ff8351-2ac6-4ff5-aac4-163acd1a492e&amp;amp;searchIndex=0&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;-Brandon&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 01:36:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascript-switch-method/m-p/177319#M16439</guid>
      <dc:creator>BrandonPrice</dc:creator>
      <dc:date>2017-11-28T01:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using javascript switch method</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascript-switch-method/m-p/177320#M16440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brandon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;So what exactly is your question? Are you asking what code to put in the switch cases to remove the basemap toggle? Have you thought about using jQuery or Dojo to query the toggle button element and using style to set the dom elements display to none?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 02:56:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascript-switch-method/m-p/177320#M16440</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-11-28T02:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using javascript switch method</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascript-switch-method/m-p/177321#M16441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I would like to know what code to use in the switch case to remove the basemap toggle since I already have a switch case in the app for the tooltips. I have not thought about jquery or dojo to query the toggle and using the style to set the dom elements display to none. Is that easy to do? Is that a simple css change?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 15:22:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascript-switch-method/m-p/177321#M16441</guid>
      <dc:creator>BrandonPrice</dc:creator>
      <dc:date>2017-11-28T15:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using javascript switch method</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascript-switch-method/m-p/177322#M16442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brandon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I don't deal with Story maps at all so I am not sure the exact code as I don't have an app to reference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 15:29:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascript-switch-method/m-p/177322#M16442</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-11-28T15:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using javascript switch method</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascript-switch-method/m-p/177323#M16443</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;No problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Brandon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 15:36:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascript-switch-method/m-p/177323#M16443</guid>
      <dc:creator>BrandonPrice</dc:creator>
      <dc:date>2017-11-28T15:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using javascript switch method</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascript-switch-method/m-p/177324#M16444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your storymap public?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 15:54:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascript-switch-method/m-p/177324#M16444</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-11-28T15:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using javascript switch method</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascript-switch-method/m-p/177325#M16445</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;The customized version is not. The arcgis online version is at this link:&amp;nbsp;&lt;A class="link-titled" href="https://caltrans.maps.arcgis.com/apps/MapSeries/index.html?appid=9c9b080c67af4d2db74b663efba971bd" title="https://caltrans.maps.arcgis.com/apps/MapSeries/index.html?appid=9c9b080c67af4d2db74b663efba971bd"&gt;https://caltrans.maps.arcgis.com/apps/MapSeries/index.html?appid=9c9b080c67af4d2db74b663efba971bd&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe it has something to do with putting .setAttribute ("disabled", "") on the BaseMap Toggle. The tab with the Resources is the tab I would like to the BaseMap Toggle removed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Brandon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 18:28:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascript-switch-method/m-p/177325#M16445</guid>
      <dc:creator>BrandonPrice</dc:creator>
      <dc:date>2017-11-28T18:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using javascript switch method</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascript-switch-method/m-p/177326#M16446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brandon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I guess that does not help then as there is no basemap toggle in the public version. So basically you need to get the toggle dom node using it's id and then use dojo/dom-style to set the display to none.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 19:33:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-javascript-switch-method/m-p/177326#M16446</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-11-28T19:33:48Z</dc:date>
    </item>
  </channel>
</rss>

