Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
geoserviceproviderfactory_esri.cpp
Go to the documentation of this file.
1
// Copyright (C) 2013-2018 Esri <contracts@esri.com>
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
#
include
"geoserviceproviderfactory_esri.h"
5
#
include
"geotiledmappingmanagerengine_esri.h"
6
#
include
"geocodingmanagerengine_esri.h"
7
#
include
"georoutingmanagerengine_esri.h"
8
#
include
"placemanagerengine_esri.h"
9
10
#
include
<
QtLocation
/
private
/
qgeotiledmappingmanagerengine_p
.
h
>
11
12
QT_BEGIN_NAMESPACE
13
14
QGeoCodingManagerEngine *GeoServiceProviderFactoryEsri::createGeocodingManagerEngine(
15
const
QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString)
const
16
{
17
return
new
GeoCodingManagerEngineEsri(parameters, error, errorString);
18
}
19
20
QGeoMappingManagerEngine *GeoServiceProviderFactoryEsri::createMappingManagerEngine(
21
const
QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString)
const
22
{
23
return
new
GeoTiledMappingManagerEngineEsri
(parameters, error, errorString);
24
}
25
26
QGeoRoutingManagerEngine *GeoServiceProviderFactoryEsri::createRoutingManagerEngine(
27
const
QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString)
const
28
{
29
const
QString token = parameters.value(QStringLiteral(
"esri.token"
)).toString();
30
31
if
(!token.isEmpty()) {
32
return
new
GeoRoutingManagerEngineEsri
(parameters, error, errorString);
33
}
else
{
34
*error = QGeoServiceProvider::MissingRequiredParameterError;
35
*errorString = tr(
"Esri plugin requires a 'esri.token' parameter.\n"
36
"Please visit https://developers.arcgis.com/authentication/accessing-arcgis-online-services/"
);
37
return
nullptr
;
38
}
39
}
40
41
QPlaceManagerEngine *GeoServiceProviderFactoryEsri::createPlaceManagerEngine(
42
const
QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString)
const
43
{
44
return
new
PlaceManagerEngineEsri
(parameters, error, errorString);
45
}
46
47
QT_END_NAMESPACE
GeoRoutingManagerEngineEsri
Definition
georoutingmanagerengine_esri.h:15
GeoTiledMappingManagerEngineEsri
Definition
geotiledmappingmanagerengine_esri.h:16
PlaceManagerEngineEsri
Definition
placemanagerengine_esri.h:17
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtlocation
src
plugins
geoservices
esri
geoserviceproviderfactory_esri.cpp
Generated on
for Qt by
1.18.0