Hi!
I would like to save a predefined area of interest of a MapView that can be loaded when there is no network connection. I tried following the ArcGIS Samples for "ExportTiles" but it keeps failing. I am not sure what the correct solution would be, but perhaps someone could provide the steps I should follow to export the map tiles.
Thank you!
Nick
Solved! Go to Solution.
Hi Nicholas, yes ideally the view would work and allow you to provide the credentials. Can you (temporarily) create a Credential object with your user name and password and pass that to in the constructor of the Portal?
Yes I've tried that (below). However, the portal now does not give an error, but it does not indicate that it loaded and the basemap made from the tiledLayer does not load either
Could it be the server I am trying to access? I'm entering my username and password as QStrings and don't enter any token like some error messages indicated I needed.
Credential* creds = new Credential(username, password, this);
Portal* portal = new Portal(QUrl("https://arcgis.com"), creds, this);
connect(portal, &Portal::doneLoading, this, [this](Error error){
if (!error.isEmpty()){
qDebug() << error.message() << error.additionalMessage();
}else{
qDebug() << "Portal loaded successfully";
}
});
portal->load();
Yes that would be great! Where can I find the .zip file?
I attached it to my reply above - are you not able to access that?
Hmm, it's not visible for me to download there
I can see the zip:
Hmm, this is strange. All I see is the text from the post still: