<?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: retryLoad is no work in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/retryload-is-no-work/m-p/1018386#M3922</link>
    <description>&lt;P&gt;Can you connect to the loadStatusChanged and get the error.message and error.additionalMessage when it fails? What does it say?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;onLoadStatusChanged: {
    if (loadStatus === Enums.LoadStatusFailedToLoad) {
        console.log("Error:", error.message, error.additionalMessage);
    }
}&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 20 Jan 2021 16:54:14 GMT</pubDate>
    <dc:creator>LucasDanzinger</dc:creator>
    <dc:date>2021-01-20T16:54:14Z</dc:date>
    <item>
      <title>retryLoad is no work</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/retryload-is-no-work/m-p/1018248#M3921</link>
      <description>&lt;P&gt;I try to do retryLoad(), but It's no work.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import QtQuick 2.6
import QtQuick.Controls 2.2
import Esri.ArcGISRuntime 100.9

ApplicationWindow {
    id: appWindow
    width: 800
    height: 600
    title: "TestMap"

    // add a mapView component
    MapView {
        id: viewtest
        anchors.fill: parent
        // set focus to enable keyboard navigation
        focus: true

        // add a map to the mapview
        Map {
            id: mapType
            // add the BasemapTopographic basemap to the map
            BasemapTopographic {}
        }
    }

    Shortcut{
        sequence: "F5"
        onActivated: {
           mapType.retryLoad()
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;It shoulde be work retryLoad, if&amp;nbsp; "&lt;EM&gt;F5&lt;/EM&gt;" key is clicked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But &lt;EM&gt;mapType.loadStatus&lt;/EM&gt;&amp;nbsp;remain&amp;nbsp;&lt;EM&gt;Enums.LoadStatusFailedToLoad.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My environment&amp;nbsp;&lt;/P&gt;&lt;P&gt;:Qt 1.15.0&amp;nbsp;MSVC2019&lt;/P&gt;&lt;P&gt;:ArcGIS&amp;nbsp;100.9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It something missing or My environment is worse?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 06:24:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/retryload-is-no-work/m-p/1018248#M3921</guid>
      <dc:creator>Tkm_Knj</dc:creator>
      <dc:date>2021-01-20T06:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: retryLoad is no work</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/retryload-is-no-work/m-p/1018386#M3922</link>
      <description>&lt;P&gt;Can you connect to the loadStatusChanged and get the error.message and error.additionalMessage when it fails? What does it say?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;onLoadStatusChanged: {
    if (loadStatus === Enums.LoadStatusFailedToLoad) {
        console.log("Error:", error.message, error.additionalMessage);
    }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Jan 2021 16:54:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/retryload-is-no-work/m-p/1018386#M3922</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2021-01-20T16:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: retryLoad is no work</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/retryload-is-no-work/m-p/1019515#M3924</link>
      <description>&lt;P&gt;It say&amp;nbsp; [ qml: Error: Invalid response The service is not tiled].&lt;/P&gt;&lt;P&gt;I get this error when application startup (offline) or click&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;"F5".&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way, I changed the code as follows, and the [loadStatus] remains [Loading].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    MapView {
        anchors.fill: parent
        // set focus to enable keyboard navigation
        focus: true

        // add a map to the mapview
        Map {
            id: mapType
            // add the BasemapTopographic basemap to the map
//            BasemapTopographic {
//                id: bMap
//            }
            Basemap{
                ArcGISTiledLayer{
                    url: "https://www.arcgis.com/home/item.html?id=30e5fe3149c34df1ba922e6f5bbf808f"
                }
            }


            onLoadStatusChanged: {
                if (loadStatus === Enums.LoadStatusFailedToLoad) {
                    console.log("Error:", error.message, error.additionalMessage);
                }
            }
        }
    }

    Shortcut{
        sequence: "F5"
        onActivated: {
            mapType.cancelLoad()
            mapType.retryLoad()
        }
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code isn't&amp;nbsp; triggered [onLoadStatusChanged]. (except cancelLoad is called) .&lt;/P&gt;&lt;P&gt;And the map doesn't finish loading and doesn't show up.&lt;/P&gt;&lt;P&gt;I don't need to stick with [retryLoad()] because I want to be able to start it offline and reload it when it comes online after startup...&lt;/P&gt;&lt;P&gt;Do you have any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 02:15:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/retryload-is-no-work/m-p/1019515#M3924</guid>
      <dc:creator>Tkm_Knj</dc:creator>
      <dc:date>2021-01-25T02:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: retryLoad is no work</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/retryload-is-no-work/m-p/1019654#M3925</link>
      <description>&lt;P&gt;I took this code an ran it successfully on my machine - the map loads and displays. Do you have network connection? What platform are you testing on?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 15:23:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/retryload-is-no-work/m-p/1019654#M3925</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2021-01-25T15:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: retryLoad is no work</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/retryload-is-no-work/m-p/1019862#M3926</link>
      <description>&lt;P&gt;yes, I made sure the network was connected when I did the [retryLoad()].&lt;/P&gt;&lt;P&gt;My platform is QtCreator 4.14.0-rc1(4.13.84).&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 23:04:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/retryload-is-no-work/m-p/1019862#M3926</guid>
      <dc:creator>Tkm_Knj</dc:creator>
      <dc:date>2021-01-25T23:04:36Z</dc:date>
    </item>
  </channel>
</rss>

