Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qgeomappingmanagerengineitemsoverlay.cpp
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
5
6#include <QtLocation/private/qgeocameracapabilities_p.h>
7#include <QtLocation/private/qgeomaptype_p.h>
9
11
12
13
16{
19 Q_UNUSED(errorString);
20 QGeoCameraCapabilities cameraCaps;
21 cameraCaps.setMinimumZoomLevel(0.0);
22 cameraCaps.setMaximumZoomLevel(30.0);
23 cameraCaps.setSupportsBearing(true);
24 cameraCaps.setSupportsTilting(true);
25 cameraCaps.setMinimumTilt(0);
26 cameraCaps.setMaximumTilt(89);
27 cameraCaps.setMinimumFieldOfView(1.0);
28 cameraCaps.setMaximumFieldOfView(179.0);
29 setCameraCapabilities(cameraCaps);
30
31 QList<QGeoMapType> mapTypes;
32 mapTypes << QGeoMapType(QGeoMapType::NoMap, tr("Empty Map"), tr("Empty Map"), false, false, 1, "itemsoverlay", cameraCaps);
33 setSupportedMapTypes(mapTypes);
34
36}
37
39{
40}
41
43{
44 return new QGeoMapItemsOverlay(this, this);
45}
46
void setSupportsBearing(bool supportsBearing)
Sets whether the associated plugin can render a map when the camera has an arbitrary bearing to suppo...
void setMaximumZoomLevel(double maximumZoomLevel)
void setMaximumTilt(double maximumTilt)
void setMaximumFieldOfView(double maximumFieldOfView)
void setMinimumFieldOfView(double minimumFieldOfView)
void setMinimumTilt(double minimumTilt)
void setMinimumZoomLevel(double minimumZoomLevel)
void setSupportsTilting(bool supportsTilting)
Sets whether the associated plugin can render a map when the camera is tilted to supportsTilting.
QGeoMappingManagerEngineItemsOverlay(const QVariantMap &parameters, QGeoServiceProvider::Error *error, QString *errorString)
void setCameraCapabilities(const QGeoCameraCapabilities &capabilities)
void engineInitialized()
Marks the engine as initialized.
void setSupportedMapTypes(const QList< QGeoMapType > &supportedMapTypes)
Sets the list of map types supported by this engine to mapTypes.
QVariantMap parameters() const
Error
Describes an error related to the loading and setup of a service provider plugin.
Definition qlist.h:74
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
#define tr(X)
#define Q_UNUSED(x)