<?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: Accessing layer (basemap) in ArcGIS Online (prompting credentials) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-layer-basemap-in-arcgis-online-prompting/m-p/1143409#M76325</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I tried the following code to use this layer as basemap&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; const imageTileLayer = new TileLayer({
                portalItem: {
                    id: "7c57414b0aad4cbc9999ad2be8d9a069"  
                }
            });
            const basemap = new Basemap({
                baseLayers: [
                  imageTileLayer                   
                ]
            });
             map = new Map({
                basemap: basemap          
            });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The particular layer was published in the ArcGIS online (Datasource URL&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;A href="https://mapgenie.osi.ie/arcgis/rest/services/WM/basemap_public/MapServer)" target="_blank" rel="noopener"&gt;https://mapgenie.osi.ie/arcgis/rest/services/WM/basemap_public/MapServer)&lt;/A&gt;&amp;nbsp;but I got this error, kindly let me know how to resolve this issue. Please note all other layers are loading without any issue.&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 751px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/33787i99DDB124B9B74C9F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 12 Feb 2022 14:02:27 GMT</pubDate>
    <dc:creator>jkumartry1980</dc:creator>
    <dc:date>2022-02-12T14:02:27Z</dc:date>
    <item>
      <title>Accessing layer (basemap) in ArcGIS Online (prompting credentials)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-layer-basemap-in-arcgis-online-prompting/m-p/1142956#M76319</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I am developing one application using ArcGIS JS Script 4.22 . In that application I need to use basemap layer of OSI. OSI has provided&amp;nbsp; a REST service link. When I use that link it asking for username and password. Basemap REST link was published in the ArcGIS online where other feature layers are published. I understand that key is needed to avoid prompting login. Could you please&amp;nbsp; help me how can I create key in ArcGIS online and how I have use along with the link in the code.&lt;/P&gt;&lt;P&gt;Could you please assist me in this regard, since it is very urgent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&lt;BR /&gt;K.Jayakumar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 05:49:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-layer-basemap-in-arcgis-online-prompting/m-p/1142956#M76319</guid>
      <dc:creator>jkumartry1980</dc:creator>
      <dc:date>2022-02-11T05:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing layer (basemap) in ArcGIS Online (prompting credentials)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-layer-basemap-in-arcgis-online-prompting/m-p/1143061#M76320</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/498753"&gt;@jkumartry1980&lt;/a&gt;,&amp;nbsp;the documentation here should provide you with some good insight:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/arcgis-organization-portals/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/arcgis-organization-portals/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/secure-resources/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/secure-resources/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 15:26:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-layer-basemap-in-arcgis-online-prompting/m-p/1143061#M76320</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2022-02-11T15:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing layer (basemap) in ArcGIS Online (prompting credentials)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-layer-basemap-in-arcgis-online-prompting/m-p/1143409#M76325</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I tried the following code to use this layer as basemap&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; const imageTileLayer = new TileLayer({
                portalItem: {
                    id: "7c57414b0aad4cbc9999ad2be8d9a069"  
                }
            });
            const basemap = new Basemap({
                baseLayers: [
                  imageTileLayer                   
                ]
            });
             map = new Map({
                basemap: basemap          
            });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The particular layer was published in the ArcGIS online (Datasource URL&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;A href="https://mapgenie.osi.ie/arcgis/rest/services/WM/basemap_public/MapServer)" target="_blank" rel="noopener"&gt;https://mapgenie.osi.ie/arcgis/rest/services/WM/basemap_public/MapServer)&lt;/A&gt;&amp;nbsp;but I got this error, kindly let me know how to resolve this issue. Please note all other layers are loading without any issue.&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 751px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/33787i99DDB124B9B74C9F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Feb 2022 14:02:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/accessing-layer-basemap-in-arcgis-online-prompting/m-p/1143409#M76325</guid>
      <dc:creator>jkumartry1980</dc:creator>
      <dc:date>2022-02-12T14:02:27Z</dc:date>
    </item>
  </channel>
</rss>

