Skip to content

Commit 2f4e7e1

Browse files
authored
Merge pull request #613 from Esri/v.next
V.next
2 parents 3a04ab2 + 9eae1b9 commit 2f4e7e1

File tree

18 files changed

+51
-53
lines changed

18 files changed

+51
-53
lines changed

augmentedreality/Examples/CppArExample/CppArExample.pro

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ equals(QT_MAJOR_VERSION, 6) {
3535
}
3636
}
3737

38-
ARCGIS_RUNTIME_VERSION = 200.3.0
38+
ARCGIS_RUNTIME_VERSION = 200.4.0
3939
include($$PWD/arcgisruntime.pri)
4040

4141
HEADERS += \

augmentedreality/Examples/QmlArExample/QmlArExample.pro

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ equals(QT_MAJOR_VERSION, 6) {
3737
}
3838
}
3939

40-
ARCGIS_RUNTIME_VERSION = 200.3.0
40+
ARCGIS_RUNTIME_VERSION = 200.4.0
4141
include($$PWD/arcgisruntime.pri)
4242

4343
TEMPLATE = app

augmentedreality/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ for details.
8484
[ArcGIS Maps SDK for Qt Toolkit](https://github.com/Esri/arcgis-maps-sdk-toolkit-qt).
8585

8686
3. In Qt Creator, create a new project and select the app template named
87-
"ArcGIS Maps 200.2.0 Qt Quick C++ app". Select the option "3D project" in the
87+
"ArcGIS Maps 200.4.0 Qt Quick C++ app". Select the option "3D project" in the
8888
"Details" dialog.
8989

9090
4. In the newly created project, add the following lines anywhere in the app's project (`.pro`)
@@ -231,7 +231,7 @@ for details.
231231

232232
2. Download the sources of the [ArcGIS Maps SDK for Qt Toolkit](https://github.com/Esri/arcgis-maps-sdk-toolkit-qt) from GitHub.
233233

234-
3. In Qt Creator, create a new project and select "ArcGIS Maps 200.2.0 Qt Quick QML app".
234+
3. In Qt Creator, create a new project and select "ArcGIS Maps 200.4.0 Qt Quick QML app".
235235
Select the option "3D project" in the "Details" step.
236236

237237
4. In the created project, add the following lines anywhere in the app's project

calcite-qml/demo/calcite_test.pro

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ CONFIG += c++17
2323
# additional modules are pulled in via arcgisruntime.pri
2424
QT += opengl qml quick quickcontrols2
2525

26-
ARCGIS_RUNTIME_VERSION = 200.3.0
26+
ARCGIS_RUNTIME_VERSION = 200.4.0
2727
include($$PWD/arcgisruntime.pri)
2828

2929
TEMPLATE = app

tests/uitools/cpp_quick/unit_tests/BasemapGalleryItemUnitTest/BasemapGalleryItemUnitTest.pro

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ QT += testlib
2727
QT -= gui
2828
QT += core gui opengl xml testlib network positioning sensors multimedia quick
2929

30-
ARCGIS_RUNTIME_VERSION = 200.3.0
30+
ARCGIS_RUNTIME_VERSION = 200.4.0
3131

3232
include($$PWD/../arcgisruntime.pri)
3333
include($$PWD/../../../../../uitools/toolkitcpp.pri)

tests/uitools/qml_quick/functional_tests/FloorFilterControllerFuncTest/FloorFilterControllerFuncTest.pro

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ CONFIG += c++17 warn_on qmltestcase
1616

1717
TEMPLATE = app
1818

19-
ARCGIS_RUNTIME_VERSION = 200.3.0
19+
ARCGIS_RUNTIME_VERSION = 200.4.0
2020
include($$PWD/../../shared/arcgisruntime.pri)
2121
include($$PWD/../../../../../uitools/toolkitqml.pri)
2222

tests/uitools/qml_quick/functional_tests/FloorFilterFuncTest/FloorFilterFuncTest.pro

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ CONFIG += c++17 warn_on qmltestcase
1616

1717
TEMPLATE = app
1818

19-
ARCGIS_RUNTIME_VERSION = 200.3.0
19+
ARCGIS_RUNTIME_VERSION = 200.4.0
2020
include($$PWD/../../shared/arcgisruntime.pri)
2121
include($$PWD/../../../../../uitools/toolkitqml.pri)
2222

tests/uitools/qml_quick/unit_tests/FloorFilterControllerUnitTest/FloorFilterControllerUnitTest.pro

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ CONFIG += c++17 warn_on qmltestcase
1616

1717
TEMPLATE = app
1818

19-
ARCGIS_RUNTIME_VERSION = 200.3.0
19+
ARCGIS_RUNTIME_VERSION = 200.4.0
2020
include($$PWD/../../shared/arcgisruntime.pri)
2121
include($$PWD/../../../../../uitools/toolkitqml.pri)
2222

uitools/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ project.
4747
A good way to start using the toolkit is to use one of the template apps which
4848
get added to QtCreator when you install the ArcGIS Runime SDK for Qt.
4949

50-
- In QtCreator choose `File/New file or project/ArcGIS/ArcGIS Maps 200.2.0 Quick QML App`
50+
- In QtCreator choose `File/New file or project/ArcGIS/ArcGIS Maps 200.4.0 Quick QML App`
5151
- choose settings to match the platform etc. you are building for
5252
- in the `.pro` file of your new app, add a line to add the toolkit for your
5353
QML application. For example:
@@ -111,7 +111,7 @@ MapView {
111111
A good way to start using the toolkit is to use one of the template apps which
112112
get added to QtCreator when you install the ArcGIS Runime SDK for Qt.
113113

114-
- In QtCreator choose `File/New file or project/ArcGIS/ArcGIS Maps 200.2.0 Qt Quick C++ App`
114+
- In QtCreator choose `File/New file or project/ArcGIS/ArcGIS Maps 200.4.0 Qt Quick C++ App`
115115
- choose settings to match the platform etc. you are building for
116116
- in the `.pro` file of your new app, add a line to add the library for your QML
117117
plugin - for example:
@@ -172,7 +172,7 @@ MapView {
172172
A good way to start using the toolkit is to use one of the template apps which
173173
get added to QtCreator when you install the ArcGIS Maps SDK for Qt.
174174

175-
- In QtCreator choose `File/New file or project/ArcGIS/ArcGIS Maps 200.2.0 Qt Widgets App`
175+
- In QtCreator choose `File/New file or project/ArcGIS/ArcGIS Maps 200.4.0 Qt Widgets App`
176176
- choose settings to match the platform etc. you are building for
177177
- in the `.pro` file of your new app, add a line to add the library for your QML
178178
plugin - for example:

uitools/cpp/Esri/ArcGISRuntime/Toolkit/BasemapGalleryController.cpp

+22-21
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include <SpatialReference.h>
3535

3636
// Qt headers
37+
#include <QFuture>
3738
#include <QPersistentModelIndex>
3839
#include <QPointer>
3940

@@ -240,29 +241,29 @@ namespace Esri::ArcGISRuntime::Toolkit {
240241

241242
/*!
242243
\internal
243-
Calls Portal::fetchDeveloperBasemaps on the portal. Note that we do
244-
not call Portal::fetchBasemaps. The former call is for retrieving the modern API-key
244+
Calls Portal::fetchDeveloperBasemapsAsync on the portal. Note that we do
245+
not call Portal::fetchBasemapsAsync. The former call is for retrieving the modern API-key
245246
metered basemaps, while the latter returns older-style basemaps. The latter is required
246247
only when the user applies a custom portal, as it is also the call for retrieving an
247248
enterprises's custom basemaps if set.
248249
*/
249250
void setToDefaultBasemaps(BasemapGalleryController* self, Portal* portal)
250251
{
251-
// For every "discovered" basemap we add it to our gallery.
252-
QObject::connect(
253-
portal, &Portal::developerBasemapsChanged, self, [portal, self]()
254-
{
255-
BasemapListModel* basemaps = portal->developerBasemaps();
256-
257-
sortBasemapsAndAddToGallery(self, basemaps);
258-
});
259-
260252
// Load the portal and kick-off the group discovery.
261-
QObject::connect(portal, &Portal::doneLoading, self, [portal](Error e)
253+
QObject::connect(portal, &Portal::doneLoading, self, [portal, self](Error e)
262254
{
263255
if (!e.isEmpty())
264256
return;
265-
portal->fetchDeveloperBasemaps();
257+
258+
portal->fetchDeveloperBasemapsAsync().then(
259+
[portal, self]()
260+
{
261+
// Sort and append the basemaps to the gallery.
262+
BasemapListModel* basemaps = portal->developerBasemaps();
263+
sortBasemapsAndAddToGallery(self, basemaps);
264+
// Notify the demo that the basemaps have changed.
265+
emit self->basemapsChanged();
266+
});
266267
});
267268
portal->load();
268269
}
@@ -411,7 +412,7 @@ namespace Esri::ArcGISRuntime::Toolkit {
411412
\brief Sets the current portal. This resets the gallery.
412413
413414
When \a portal is set, the basemaps of the Portal
414-
are fetched via \c{Portal::fetchBasemaps}.
415+
are fetched via \c{Portal::fetchBasemapsAsync}.
415416
416417
This is useful for displaying an organization's basemaps or to display a gallery of the old-style basemaps
417418
(which do not require an API key or named user.)
@@ -457,13 +458,13 @@ namespace Esri::ArcGISRuntime::Toolkit {
457458
}
458459
else
459460
{
460-
connect(m_portal, &Portal::basemapsChanged, this, [this]
461-
{
462-
BasemapListModel* basemaps = m_portal->basemaps();
463-
464-
sortBasemapsAndAddToGallery(this, basemaps);
465-
});
466-
m_portal->fetchBasemaps();
461+
m_portal->fetchBasemapsAsync().then(
462+
[this]()
463+
{
464+
BasemapListModel* basemaps = m_portal->basemaps();
465+
sortBasemapsAndAddToGallery(this, basemaps);
466+
emit basemapsChanged();
467+
});
467468
}
468469
});
469470
}

uitools/cpp/Esri/ArcGISRuntime/Toolkit/BasemapGalleryController.h

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ namespace Esri::ArcGISRuntime::Toolkit {
7272
signals:
7373
void geoModelChanged();
7474
void portalChanged();
75+
void basemapsChanged();
7576
void currentBasemapChanged();
7677

7778
private:

uitools/examples/cpp_quick/cpp_quick.pro

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ equals(QT_MAJOR_VERSION, 6) {
3939
}
4040
}
4141

42-
ARCGIS_RUNTIME_VERSION = 200.3.0
42+
ARCGIS_RUNTIME_VERSION = 200.4.0
4343
include($$PWD/arcgisruntime.pri)
4444
include($$PWD/../../toolkitcpp.pri)
4545

uitools/examples/cpp_quick/src/demos/BasemapGalleryDemo.cpp

+9-13
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,17 @@ BasemapGalleryDemo::BasemapGalleryDemo(QObject* parent) :
3333
auto portal = m_controller->portal();
3434
// Once the portal has loaded up basemaps. Choose the first available basemap from the model
3535
// and apply it to our active view.
36-
connect(portal, &Portal::developerBasemapsChanged, this,
36+
connect(m_controller, &Toolkit::BasemapGalleryController::basemapsChanged, this,
3737
[this, portal]
3838
{
39-
if (portal->developerBasemaps()->size() > 0)
40-
{
41-
auto basemap = portal->developerBasemaps()->at(0);
42-
if (geoView()->geoViewType() == GeoViewType::MapView)
43-
{
44-
setGeoModel(new Map(basemap, this));
45-
}
46-
else if (geoView()->geoViewType() == GeoViewType::SceneView)
47-
{
48-
setGeoModel(new Scene(basemap, this));
49-
}
50-
}
39+
if (!portal->developerBasemaps() || portal->developerBasemaps()->isEmpty())
40+
return;
41+
42+
auto basemap = portal->developerBasemaps()->at(0);
43+
if (geoView()->geoViewType() == GeoViewType::MapView)
44+
setGeoModel(new Map(basemap, this));
45+
else if (geoView()->geoViewType() == GeoViewType::SceneView)
46+
setGeoModel(new Scene(basemap, this));
5147
});
5248
}
5349

uitools/examples/qml_quick/qml_quick.pro

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ CONFIG += c++17
2424
# additional modules are pulled in via arcgisruntime.pri
2525
QT += opengl qml quick
2626

27-
ARCGIS_RUNTIME_VERSION = 200.3.0
27+
ARCGIS_RUNTIME_VERSION = 200.4.0
2828
include($$PWD/arcgisruntime.pri)
2929
include($$PWD/../../toolkitqml.pri)
3030

uitools/import/Esri/ArcGISRuntime/Toolkit/BasemapGallery.qml

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Pane {
7777
/*!
7878
\qmlproperty Portal portal
7979
\brief The \c Portal contains basemaps which will be fetched and displayed in the gallery if applicable.
80-
When a valid Portal is set then `Portal.fetchBasemaps` is immediately called.
80+
When a valid Portal is set then `Portal.fetchBasemapsAsync` is immediately called.
8181
8282
Note: Changing the current active portal will reset the contents of the gallery.
8383
*/

uitools/import/Esri/ArcGISRuntime/Toolkit/Controller/qmldir

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
module Esri.ArcGISRuntime.Toolkit.Controller
1616

1717
# Current version increment
18-
CurrentVersion 200.2 CurrentVersion.qml
18+
CurrentVersion 200.4 CurrentVersion.qml
1919

2020
# Controller components
2121
AuthenticationController 100.10 AuthenticationController.qml

uitools/import/Esri/ArcGISRuntime/Toolkit/qmldir

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414

1515
module Esri.ArcGISRuntime.Toolkit
1616

17-
depends Esri.ArcGISRuntime.Toolkit.Controller 200.2
17+
depends Esri.ArcGISRuntime.Toolkit.Controller 200.4
1818

1919
# Current version increment
20-
CurrentVersion 200.2 CurrentVersion.qml
20+
CurrentVersion 200.4 CurrentVersion.qml
2121

2222
# View components
2323
AuthenticationView 100.10 AuthenticationView.qml

uitools/toolkit.qdocconf

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ project = EsriArcGISRuntimeToolkit
1616

1717
description = Esri ArcGISRuntime Toolkit Documentation
1818

19-
version = 200.2
19+
version = 200.4
2020

2121
headers.fileextensions = "*.h"
2222

0 commit comments

Comments
 (0)