<?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: LayerList with token protected layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758836#M70240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joel,&lt;/P&gt;&lt;P&gt;done that …. Added require "esri/dijit/Legend", and modified code following istructions. Protected are correctly added to map , no more errors were generated but legend doesnt work correctly.&lt;/P&gt;&lt;P&gt;I can view just first layer without detailed options (layer styles / opacity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in trying to download and install local api …. We’ll see&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Da: Joel Bennett &lt;/P&gt;&lt;P&gt;Inviato: lunedì 23 maggio 2016 14:58&lt;/P&gt;&lt;P&gt;A: Porta Giorgio&lt;/P&gt;&lt;P&gt;Oggetto: Re:  - LayerList with token protected layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GeoNet &amp;lt;https://community.esri.com/?et=watches.email.thread&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LayerList with token protected layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Joel Bennett&amp;lt;https://community.esri.com/people/bennetjo?et=watches.email.thread&amp;gt; in ArcGIS API for JavaScript - View the full discussion&amp;lt;https://community.esri.com/message/610200?et=watches.email.thread#comment-610200&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 May 2016 15:48:38 GMT</pubDate>
    <dc:creator>MarcoRosa</dc:creator>
    <dc:date>2016-05-23T15:48:38Z</dc:date>
    <item>
      <title>LayerList with token protected layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758826#M70230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;im going to set up Layer List in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;var llWidget = new LayerList({&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map: map,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; showLegend: true,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; showOpacitySlider: true,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layers: [{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer: mylayer,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id: "mylayerID",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; subLayers: true&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, "layerList");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; llWidget.startup();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;Note that mylayer becomes from a request for a token protected lite this: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; mylayer= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; ArcGISDynamicMapServiceLayer(url_mylayer + &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: 10pt; font-family: Consolas;"&gt;"?token="&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; + token, {})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;Doesn't work .... error is invalid tokens when request to legends it's made. How can i set layer to layer list in thic case ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;Where's the mistake?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;Thank's in advanced to all&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;GP&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 14:59:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758826#M70230</guid>
      <dc:creator>MarcoRosa</dc:creator>
      <dc:date>2016-05-20T14:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList with token protected layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758827#M70231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Normally the advice from the JS API team for working with secured services is to use a proxy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jshelp/ags_proxy.html" title="https://developers.arcgis.com/javascript/3/jshelp/ags_proxy.html"&gt;Using the proxy | Guide | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/resource-proxy/releases" title="https://github.com/Esri/resource-proxy/releases"&gt;Releases · Esri/resource-proxy · GitHub&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 15:09:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758827#M70231</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-05-20T15:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList with token protected layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758828#M70232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Legend dijit is known to hiccup on layers having ?token= in their URL under some circumstances.&amp;nbsp; If you use your browser's developer tools to monitor the network traffic, particularly for the legend request, and notice that "?token=" appears twice in the URL, there is a known workaround. If you have a locally hosted version of the API, you can tweak the esri/dijit/legend.js file to get around this issue.&amp;nbsp; I discussed this in a separate thread at:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/122680#comment-463137" title="https://community.esri.com/thread/122680#comment-463137"&gt;https://community.esri.com/thread/122680#comment-463137&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that I wrote that up for version 3.12...if you have a different version of the API, the variable names could be different.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 17:02:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758828#M70232</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2016-05-20T17:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList with token protected layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758829#M70233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert, yes im using proxy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Da: Robert Scheitlin, GISP &lt;/P&gt;&lt;P&gt;Inviato: venerdì 20 maggio 2016 17:11&lt;/P&gt;&lt;P&gt;A: Porta Giorgio &amp;lt;gporta@consodata.it&amp;gt;&lt;/P&gt;&lt;P&gt;Oggetto: Re:  - LayerList with token protected layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GeoNet &amp;lt;https://community.esri.com/?et=watches.email.thread&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LayerList with token protected layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Robert Scheitlin, GISP&amp;lt;https://community.esri.com/people/rscheitlin?et=watches.email.thread&amp;gt; in ArcGIS API for JavaScript - View the full discussion&amp;lt;https://community.esri.com/message/609889?et=watches.email.thread#comment-609889&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 12:40:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758829#M70233</guid>
      <dc:creator>MarcoRosa</dc:creator>
      <dc:date>2016-05-23T12:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList with token protected layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758830#M70234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Joel, then there is no solution if i use online api ? Im using 3.16 version now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Da: Joel Bennett &lt;/P&gt;&lt;P&gt;Inviato: venerdì 20 maggio 2016 19:03&lt;/P&gt;&lt;P&gt;A: Porta Giorgio &amp;lt;gporta@consodata.it&amp;gt;&lt;/P&gt;&lt;P&gt;Oggetto: Re:  - LayerList with token protected layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GeoNet &amp;lt;https://community.esri.com/?et=watches.email.thread&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LayerList with token protected layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Joel Bennett&amp;lt;https://community.esri.com/people/bennetjo?et=watches.email.thread&amp;gt; in ArcGIS API for JavaScript - View the full discussion&amp;lt;https://community.esri.com/message/609904?et=watches.email.thread#comment-609904&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 12:41:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758830#M70234</guid>
      <dc:creator>MarcoRosa</dc:creator>
      <dc:date>2016-05-23T12:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList with token protected layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758831#M70235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The preferred solution would be to get the API and host it yourself if possible and then make those tweaks...see the bottom of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jshelp/intro_accessapi.html" title="https://developers.arcgis.com/javascript/3/jshelp/intro_accessapi.html"&gt;Get the ArcGIS API for JavaScript | Guide | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that's not an option, a less elegant solution would be to add "esri/dijit/Legend" to your require list.&amp;nbsp; Then, right before your line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;var llWidget = new LayerList(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;you could put&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;Legend.prototype.&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;_legendRequestServer&lt;/SPAN&gt; = function(a) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //all the same code as the original _legendRequestServer function&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //except with the tweaks mentioned in the other thread&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;and also &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;Legend.prototype.&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;_buildRow_Tools&lt;/SPAN&gt; = function(a, b, c, d, e) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //all the same code as the original &lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;_buildRow_Tools&lt;/SPAN&gt; function&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //except with the tweaks mentioned in the other thread&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;You can get the original code for the legend class by downloading &lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;&lt;A href="https://js.arcgis.com/3.16/esri/dijit/Legend.js"&gt;https://js.arcgis.com/3.16/esri/dijit/Legend.js&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 12:57:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758831#M70235</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2016-05-23T12:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList with token protected layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758832#M70236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert,&lt;/P&gt;&lt;P&gt;i’ll try and i let you know.&lt;/P&gt;&lt;P&gt;Thanks at the moment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giorgio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Da: Robert Scheitlin, GISP &lt;/P&gt;&lt;P&gt;Inviato: lunedì 23 maggio 2016 15:00&lt;/P&gt;&lt;P&gt;A: Porta Giorgio&lt;/P&gt;&lt;P&gt;Oggetto: Reply marked as helpful on LayerList with token protected layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GeoNet &amp;lt;https://community.esri.com/?et=watches.email.outcome&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LayerList with token protected layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert Scheitlin, GISP&amp;lt;https://community.esri.com/people/rscheitlin?et=watches.email.outcome&amp;gt; marked Joel Bennett&amp;lt;https://community.esri.com/people/bennetjo?et=watches.email.outcome&amp;gt;'s reply on LayerList with token protected layer&amp;lt;https://community.esri.com/thread/177397?et=watches.email.outcome&amp;gt; as helpful. View the full reply&amp;lt;https://community.esri.com/message/610200?et=watches.email.outcome#comment-610200&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 14:03:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758832#M70236</guid>
      <dc:creator>MarcoRosa</dc:creator>
      <dc:date>2016-05-23T14:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList with token protected layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758833#M70237</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;done that …. Added require "esri/dijit/Legend", and modified code following istructions. Protected are correctly added to map , no more errors were generated but legend doesnt work correctly.&lt;/P&gt;&lt;P&gt;I can view just first layer without detailed options (layer styles / opacity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Da: Robert Scheitlin, GISP &lt;/P&gt;&lt;P&gt;Inviato: lunedì 23 maggio 2016 15:00&lt;/P&gt;&lt;P&gt;A: Porta Giorgio &amp;lt;gporta@consodata.it&amp;gt;&lt;/P&gt;&lt;P&gt;Oggetto: Reply marked as helpful on LayerList with token protected layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GeoNet &amp;lt;https://community.esri.com/?et=watches.email.outcome&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LayerList with token protected layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert Scheitlin, GISP&amp;lt;https://community.esri.com/people/rscheitlin?et=watches.email.outcome&amp;gt; marked Joel Bennett&amp;lt;https://community.esri.com/people/bennetjo?et=watches.email.outcome&amp;gt;'s reply on LayerList with token protected layer&amp;lt;https://community.esri.com/thread/177397?et=watches.email.outcome&amp;gt; as helpful. View the full reply&amp;lt;https://community.esri.com/message/610200?et=watches.email.outcome#comment-610200&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 15:12:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758833#M70237</guid>
      <dc:creator>MarcoRosa</dc:creator>
      <dc:date>2016-05-23T15:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList with token protected layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758834#M70238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; It was &lt;A href="https://community.esri.com/migrated-users/5602"&gt;Joel Bennett&lt;/A&gt; that recommended the workaround not me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 15:38:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758834#M70238</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-05-23T15:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList with token protected layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758835#M70239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Da: Robert Scheitlin, GISP &lt;/P&gt;&lt;P&gt;Inviato: lunedì 23 maggio 2016 17:39&lt;/P&gt;&lt;P&gt;A: Porta Giorgio &amp;lt;gporta@consodata.it&amp;gt;&lt;/P&gt;&lt;P&gt;Oggetto: Re:  - LayerList with token protected layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GeoNet &amp;lt;https://community.esri.com/?et=watches.email.thread&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LayerList with token protected layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Robert Scheitlin, GISP&amp;lt;https://community.esri.com/people/rscheitlin?et=watches.email.thread&amp;gt; in ArcGIS API for JavaScript - View the full discussion&amp;lt;https://community.esri.com/message/610266?et=watches.email.thread#comment-610266&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 15:39:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758835#M70239</guid>
      <dc:creator>MarcoRosa</dc:creator>
      <dc:date>2016-05-23T15:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList with token protected layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758836#M70240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joel,&lt;/P&gt;&lt;P&gt;done that …. Added require "esri/dijit/Legend", and modified code following istructions. Protected are correctly added to map , no more errors were generated but legend doesnt work correctly.&lt;/P&gt;&lt;P&gt;I can view just first layer without detailed options (layer styles / opacity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in trying to download and install local api …. We’ll see&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Da: Joel Bennett &lt;/P&gt;&lt;P&gt;Inviato: lunedì 23 maggio 2016 14:58&lt;/P&gt;&lt;P&gt;A: Porta Giorgio&lt;/P&gt;&lt;P&gt;Oggetto: Re:  - LayerList with token protected layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GeoNet &amp;lt;https://community.esri.com/?et=watches.email.thread&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LayerList with token protected layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Joel Bennett&amp;lt;https://community.esri.com/people/bennetjo?et=watches.email.thread&amp;gt; in ArcGIS API for JavaScript - View the full discussion&amp;lt;https://community.esri.com/message/610200?et=watches.email.thread#comment-610200&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 15:48:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758836#M70240</guid>
      <dc:creator>MarcoRosa</dc:creator>
      <dc:date>2016-05-23T15:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList with token protected layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758837#M70241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post the relevant portions of your code with the modifications included?&amp;nbsp; In the case that it is correct, there may also be some additional requires I didn't think of initially.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 16:02:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758837#M70241</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2016-05-23T16:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList with token protected layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758838#M70242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, looking at it more closely, you're better off setting up the API locally and tweaking the one file.&amp;nbsp; Trying the inline fix actually gets pretty nasty...those two functions are full of required modules...for example, in _legendRequestServer, I can see that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c = dojo/_base/lang&lt;/P&gt;&lt;P&gt;l = dojo/json&lt;/P&gt;&lt;P&gt;d = dojo/_base/array&lt;/P&gt;&lt;P&gt;w = esri/request&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's more in the _buildRow_Tools function as well.&amp;nbsp; It's possible to work with this, but very ugly, so I wouldn't recommend it.&amp;nbsp; I apologize for sending you down that trail without fully thinking it through.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 16:46:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758838#M70242</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2016-05-23T16:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList with token protected layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758839#M70243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joel,&lt;/P&gt;&lt;P&gt;downloaded, installed local API and made workaround inside Legend.js as your suggestion, it works all fine.&lt;/P&gt;&lt;P&gt;Thanks a lot, hear from you soon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giorgio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Da: Joel Bennett &lt;/P&gt;&lt;P&gt;Inviato: lunedì 23 maggio 2016 18:47&lt;/P&gt;&lt;P&gt;A: Porta Giorgio&lt;/P&gt;&lt;P&gt;Oggetto: Re:  - LayerList with token protected layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GeoNet &amp;lt;https://community.esri.com/?et=watches.email.thread&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LayerList with token protected layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Joel Bennett&amp;lt;https://community.esri.com/people/bennetjo?et=watches.email.thread&amp;gt; in ArcGIS API for JavaScript - View the full discussion&amp;lt;https://community.esri.com/message/610333?et=watches.email.thread#comment-610333&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 09:12:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-with-token-protected-layer/m-p/758839#M70243</guid>
      <dc:creator>MarcoRosa</dc:creator>
      <dc:date>2016-05-24T09:12:05Z</dc:date>
    </item>
  </channel>
</rss>

