<?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: basemaps &amp; NLiu's TOC in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaps-amp-nliu-s-toc/m-p/23678#M2067</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ken,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure why it isn't showing up here, but in my e-mail in-box, you asked: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: 'Helvetica','sans-serif'; font-size: 10.5pt;"&gt;Did you comment out the other TOC?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: 'Helvetica','sans-serif'; font-size: 10.5pt;"&gt;I don't have another TOC.&amp;nbsp; My TOC currently looks like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// connect.connect(map, 'onLayersAddResult', function (results) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; toc = new TOC({&lt;/P&gt;&lt;P&gt; map: map&lt;/P&gt;&lt;P&gt;/*&amp;nbsp;&amp;nbsp; layerInfos: [{&lt;/P&gt;&lt;P&gt; layer: Parcels,&lt;/P&gt;&lt;P&gt; title: "Parcels"&lt;/P&gt;&lt;P&gt; }]&amp;nbsp; */&lt;/P&gt;&lt;P&gt; }, 'tocDiv');&lt;/P&gt;&lt;P&gt; toc.startup();&lt;/P&gt;&lt;P&gt;// });&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; map.addLayer(Parcels);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Dec 2014 22:10:53 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2014-12-09T22:10:53Z</dc:date>
    <item>
      <title>basemaps &amp; NLiu's TOC</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaps-amp-nliu-s-toc/m-p/23673#M2062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to implement NLiu’s TOC widget.&amp;nbsp; Basically, what I have done is created two custom base maps that I add to the basemapgallery.&amp;nbsp; One of the basemaps is a Zoning map for our county and the other is an aerial photo.&amp;nbsp; I then add a dynamic map service for the parcels.&amp;nbsp; The parcels float on top of the photo or Zoning depending on the state of basemaptoggle.&amp;nbsp; The parcels show up in the Table of Contents but Zoning does not.&amp;nbsp; How do I get the Zoning map to show up in the TOC?&amp;nbsp; It will display in the TOC if I add it as a tiled map service but not as a basemap.&amp;nbsp; Here’s my code.&amp;nbsp; The TOC is at the bottom.&amp;nbsp; In its current state, it will place the parcels in the TOC.&amp;nbsp; If I un-comment the Zoning piece in layerinfos, the arcels don’t display in the TOC and I get an error message in the console stating “Uncaught ReferenceError:&amp;nbsp; Zoning is not defined.”&amp;nbsp; What do I have to do to get it to recognize the Zoning basemap?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 20:32:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaps-amp-nliu-s-toc/m-p/23673#M2062</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-12-09T20:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: basemaps &amp; NLiu's TOC</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaps-amp-nliu-s-toc/m-p/23674#M2063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;A href="http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/latest/docs/toc/reference.html"&gt;TOCLayerInfo&lt;/A&gt; can accept a &lt;A href="https://developers.arcgis.com/javascript/jsapi/layer-amd.html"&gt;Layer&lt;/A&gt; but you are creating Zoning as a &lt;A href="https://developers.arcgis.com/javascript/jsapi/basemaplayer-amd.html"&gt;BasemapLayer&lt;/A&gt;, which is entirely different.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 21:05:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaps-amp-nliu-s-toc/m-p/23674#M2063</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-12-09T21:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: basemaps &amp; NLiu's TOC</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaps-amp-nliu-s-toc/m-p/23675#M2064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, does that mean it can't be done?&amp;nbsp; It seems to me that I have seen some discussion on ways to suppress the display of basemaps in NLiu's Table of Contents, unless they were referring to a tiled map service called basemap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 21:26:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaps-amp-nliu-s-toc/m-p/23675#M2064</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-12-09T21:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: basemaps &amp; NLiu's TOC</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaps-amp-nliu-s-toc/m-p/23676#M2065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you do not include the LayerInfo at all, the basemap will be added to the TOC. I haven't tested it when using the BasemapToggle, so I don't know if it will add the zone map at first or the aerial map when you toggle to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;toc = new TOC({&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map: map&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, 'tocDiv');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; toc.startup();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 21:38:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaps-amp-nliu-s-toc/m-p/23676#M2065</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-12-09T21:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: basemaps &amp; NLiu's TOC</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaps-amp-nliu-s-toc/m-p/23677#M2066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ken,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your efforts.&amp;nbsp; I have tried that previously and didn't get the desired results.&amp;nbsp; I just tried it again, and I did not get any layers in the TOC.&amp;nbsp; In the console, I received this error:&lt;/P&gt;&lt;P&gt;Uncaught Error: Tried to register widget with id==tocDiv but that id is already registered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 21:53:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaps-amp-nliu-s-toc/m-p/23677#M2066</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-12-09T21:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: basemaps &amp; NLiu's TOC</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaps-amp-nliu-s-toc/m-p/23678#M2067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ken,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure why it isn't showing up here, but in my e-mail in-box, you asked: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: 'Helvetica','sans-serif'; font-size: 10.5pt;"&gt;Did you comment out the other TOC?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: 'Helvetica','sans-serif'; font-size: 10.5pt;"&gt;I don't have another TOC.&amp;nbsp; My TOC currently looks like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// connect.connect(map, 'onLayersAddResult', function (results) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; toc = new TOC({&lt;/P&gt;&lt;P&gt; map: map&lt;/P&gt;&lt;P&gt;/*&amp;nbsp;&amp;nbsp; layerInfos: [{&lt;/P&gt;&lt;P&gt; layer: Parcels,&lt;/P&gt;&lt;P&gt; title: "Parcels"&lt;/P&gt;&lt;P&gt; }]&amp;nbsp; */&lt;/P&gt;&lt;P&gt; }, 'tocDiv');&lt;/P&gt;&lt;P&gt; toc.startup();&lt;/P&gt;&lt;P&gt;// });&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; map.addLayer(Parcels);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 22:10:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaps-amp-nliu-s-toc/m-p/23678#M2067</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-12-09T22:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: basemaps &amp; NLiu's TOC</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaps-amp-nliu-s-toc/m-p/23679#M2068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I deleted that message after thinking about it a little more. Instead, I tried making a test version and ended up with this error, which points to the TOC code.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="38806" alt="toc error.png" class="jive-image image-1" src="/legacyfs/online/38806_toc error.png" style="width: 620px; height: 328px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it looks it can't be done this way...you'll have to think of another way to do it. Could you add them as regular layers and switch between the maps via a &lt;A href="http://dojotoolkit.org/reference-guide/1.10/dijit/form/RadioButton.html"&gt;Radiobutton&lt;/A&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 22:16:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaps-amp-nliu-s-toc/m-p/23679#M2068</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-12-09T22:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: basemaps &amp; NLiu's TOC</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaps-amp-nliu-s-toc/m-p/23680#M2069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm no programmer; not by a long shot, but I'll give it a try.&amp;nbsp; Thanks, Ken.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 22:28:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaps-amp-nliu-s-toc/m-p/23680#M2069</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-12-09T22:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: basemaps &amp; NLiu's TOC</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaps-amp-nliu-s-toc/m-p/23681#M2070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please remember to mark this question as answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 13:59:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/basemaps-amp-nliu-s-toc/m-p/23681#M2070</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-12-10T13:59:00Z</dc:date>
    </item>
  </channel>
</rss>

