<?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 ArcGISTiledLayer will not load in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/arcgistiledlayer-will-not-load/m-p/56550#M293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the following URL to create an instance of ArcGISTiledLayer but the map will not load. I think it has to do with needing credentials to use this particular URL, but even passing a Credential object does not fix the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I am approaching this in the wrong way, but it seems like this should work:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #800000;"&gt;serviceUrl_&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;QUrl&lt;/SPAN&gt;(&lt;SPAN style="color: #008000;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Ftiledbasemaps.arcgis.com%2Farcgis%2Frest%2Fservices%2FCanvas%2FWorld_Light_Gray_Base%2FMapServer" target="_blank"&gt;https://tiledbasemaps.arcgis.com/arcgis/rest/services/Canvas/World_Light_Gray_Base/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #800080;"&gt;Credential&lt;/SPAN&gt;*&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;creds&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;Credential&lt;/SPAN&gt;(username,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;password,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;this&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #800080;"&gt;ArcGISTiledLayer&lt;/SPAN&gt;*&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;tiledLayer&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;ArcGISTiledLayer&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;serviceUrl_&lt;/SPAN&gt;,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;creds,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;this&lt;/SPAN&gt;);
&lt;SPAN style="color: #800080;"&gt;Basemap&lt;/SPAN&gt;*&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;basemap&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;Basemap&lt;/SPAN&gt;(tiledLayer,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;this&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #800000;"&gt;p_Map_&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;Map&lt;/SPAN&gt;(basemap,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;this&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #800000;"&gt;p_MapView_&lt;/SPAN&gt;-&amp;gt;setMap(&lt;SPAN style="color: #800000;"&gt;p_Map_&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 15:58:23 GMT</pubDate>
    <dc:creator>NicholasLiccini</dc:creator>
    <dc:date>2021-12-12T15:58:23Z</dc:date>
    <item>
      <title>ArcGISTiledLayer will not load</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/arcgistiledlayer-will-not-load/m-p/56550#M293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the following URL to create an instance of ArcGISTiledLayer but the map will not load. I think it has to do with needing credentials to use this particular URL, but even passing a Credential object does not fix the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I am approaching this in the wrong way, but it seems like this should work:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #800000;"&gt;serviceUrl_&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;QUrl&lt;/SPAN&gt;(&lt;SPAN style="color: #008000;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Ftiledbasemaps.arcgis.com%2Farcgis%2Frest%2Fservices%2FCanvas%2FWorld_Light_Gray_Base%2FMapServer" target="_blank"&gt;https://tiledbasemaps.arcgis.com/arcgis/rest/services/Canvas/World_Light_Gray_Base/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #800080;"&gt;Credential&lt;/SPAN&gt;*&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;creds&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;Credential&lt;/SPAN&gt;(username,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;password,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;this&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #800080;"&gt;ArcGISTiledLayer&lt;/SPAN&gt;*&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;tiledLayer&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;ArcGISTiledLayer&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;serviceUrl_&lt;/SPAN&gt;,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;creds,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;this&lt;/SPAN&gt;);
&lt;SPAN style="color: #800080;"&gt;Basemap&lt;/SPAN&gt;*&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;basemap&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;Basemap&lt;/SPAN&gt;(tiledLayer,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;this&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #800000;"&gt;p_Map_&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;Map&lt;/SPAN&gt;(basemap,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;this&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #800000;"&gt;p_MapView_&lt;/SPAN&gt;-&amp;gt;setMap(&lt;SPAN style="color: #800000;"&gt;p_Map_&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 15:58:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/arcgistiledlayer-will-not-load/m-p/56550#M293</guid>
      <dc:creator>NicholasLiccini</dc:creator>
      <dc:date>2021-12-12T15:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGISTiledLayer will not load</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/arcgistiledlayer-will-not-load/m-p/56551#M294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The url you provided is not for viewing. &amp;nbsp;Here's the correct one:&amp;nbsp;&lt;A class="link-titled" href="http://services.arcgisonline.com/arcgis/rest/services/Canvas/World_Light_Gray_Base/MapServer" title="http://services.arcgisonline.com/arcgis/rest/services/Canvas/World_Light_Gray_Base/MapServer"&gt;Canvas/World_Light_Gray_Base (MapServer)&lt;/A&gt;&amp;nbsp;. &amp;nbsp;Also, there is an issue with authentication and we have it logged in our system to take a look. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 18:41:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/arcgistiledlayer-will-not-load/m-p/56551#M294</guid>
      <dc:creator>KoushikHajra</dc:creator>
      <dc:date>2017-09-22T18:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGISTiledLayer will not load</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/arcgistiledlayer-will-not-load/m-p/56552#M295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That URL works for viewing like you said, and now I have another issue with this. I would like to create an ExportTileCacheTask using this URL but it gives me an error message saying that this map is not for export. I had thought that the one in my original post supported export (I don't need to use that link for viewing if I am able to to export it as a .tpk file), but it keeps giving me errors saying that it was unable to generate a token from my credentials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a server problem with ArcGIS or is this part of my code that is causing the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 20:21:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/arcgistiledlayer-will-not-load/m-p/56552#M295</guid>
      <dc:creator>NicholasLiccini</dc:creator>
      <dc:date>2017-09-22T20:21:28Z</dc:date>
    </item>
  </channel>
</rss>

