Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QDeclarativeGeoMap Class Reference

#include <qdeclarativegeomap_p.h>

+ Inheritance diagram for QDeclarativeGeoMap:
+ Collaboration diagram for QDeclarativeGeoMap:

Signals

void pluginChanged (QDeclarativeGeoServiceProvider *plugin)
 
void zoomLevelChanged (qreal zoomLevel)
 
void centerChanged (const QGeoCoordinate &coordinate)
 
void activeMapTypeChanged ()
 
void supportedMapTypesChanged ()
 
void minimumZoomLevelChanged (qreal minimumZoomLevel)
 
void maximumZoomLevelChanged (qreal maximumZoomLevel)
 
void mapItemsChanged ()
 
void errorChanged ()
 
void copyrightLinkActivated (const QString &link)
 
void copyrightsVisibleChanged (bool visible)
 
void colorChanged (const QColor &color)
 
void bearingChanged (qreal bearing)
 
void tiltChanged (qreal tilt)
 
void fieldOfViewChanged (qreal fieldOfView)
 
void minimumTiltChanged (qreal minimumTilt)
 
void maximumTiltChanged (qreal maximumTilt)
 
void minimumFieldOfViewChanged (qreal minimumFieldOfView)
 
void maximumFieldOfViewChanged (qreal maximumFieldOfView)
 
void copyrightsImageChanged (const QImage &copyrightsImage)
 
void copyrightsChanged (const QString &copyrightsHtml)
 
void mapReadyChanged (bool ready)
 
void visibleAreaChanged ()
 
 Q_REVISION (14) void visibleRegionChanged()
 
- Signals inherited from QQuickItem
void childrenRectChanged (const QRectF &)
 
void baselineOffsetChanged (qreal)
 
void stateChanged (const QString &)
 
void focusChanged (bool)
 
void activeFocusChanged (bool)
 
Q_REVISION(6, 7) void focusPolicyChanged(Qt Q_REVISION (2, 1) void activeFocusOnTabChanged(bool)
 
void parentChanged (QQuickItem *)
 
void transformOriginChanged (TransformOrigin)
 
void smoothChanged (bool)
 
void antialiasingChanged (bool)
 
void clipChanged (bool)
 
 Q_REVISION (2, 1) void windowChanged(QQuickWindow *window)
 
void childrenChanged ()
 
void opacityChanged ()
 
void enabledChanged ()
 
void visibleChanged ()
 
void visibleChildrenChanged ()
 
void rotationChanged ()
 
void scaleChanged ()
 
void xChanged ()
 
void yChanged ()
 
void widthChanged ()
 
void heightChanged ()
 
void zChanged ()
 
void implicitWidthChanged ()
 
void implicitHeightChanged ()
 
 Q_REVISION (2, 11) void containmentMaskChanged()
 
 Q_REVISION (6, 0) void paletteChanged()
 
 Q_REVISION (6, 0) void paletteCreated()
 
- Signals inherited from QObject
void destroyed (QObject *=nullptr)
 This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified, and cannot be blocked.
 
void objectNameChanged (const QString &objectName, QPrivateSignal)
 This signal is emitted after the object's name has been changed.
 

Public Member Functions

 QDeclarativeGeoMap (QQuickItem *parent=nullptr)
 \qmltype Map \instantiates QDeclarativeGeoMap \inqmlmodule QtLocation
 
 ~QDeclarativeGeoMap ()
 
void setPlugin (QDeclarativeGeoServiceProvider *plugin)
 \qmlproperty Plugin QtLocation::Map::plugin
 
QDeclarativeGeoServiceProviderplugin () const
 
void setActiveMapType (const QGeoMapType &mapType)
 \qmlproperty mapType QtLocation::Map::activeMapType
 
QGeoMapType activeMapType () const
 
void setMinimumZoomLevel (qreal minimumZoomLevel, bool userSet=true)
 
qreal minimumZoomLevel () const
 \qmlproperty real QtLocation::Map::minimumZoomLevel
 
void setMaximumZoomLevel (qreal maximumZoomLevel, bool userSet=true)
 
qreal maximumZoomLevel () const
 \qmlproperty real QtLocation::Map::maximumZoomLevel
 
void setZoomLevel (qreal zoomLevel)
 \qmlproperty real QtLocation::Map::zoomLevel
 
qreal zoomLevel () const
 
void setBearing (qreal bearing)
 \qmlproperty real QtLocation::Map::bearing
 
qreal bearing () const
 
void setTilt (qreal tilt)
 \qmlproperty real QtLocation::Map::tilt
 
qreal tilt () const
 
void setMinimumTilt (qreal minimumTilt, bool userSet=true)
 
qreal minimumTilt () const
 \qmlproperty real QtLocation::Map::minimumTilt
 
void setMaximumTilt (qreal maximumTilt, bool userSet=true)
 
qreal maximumTilt () const
 \qmlproperty real QtLocation::Map::maximumTilt
 
void setFieldOfView (qreal fieldOfView)
 \qmlproperty real QtLocation::Map::fieldOfView
 
qreal fieldOfView () const
 
void setMinimumFieldOfView (qreal minimumFieldOfView, bool userSet=true)
 
qreal minimumFieldOfView () const
 \qmlproperty real QtLocation::Map::minimumFieldOfView
 
void setMaximumFieldOfView (qreal maximumFieldOfView, bool userSet=true)
 
qreal maximumFieldOfView () const
 \qmlproperty real QtLocation::Map::maximumFieldOfView
 
void setCenter (const QGeoCoordinate &center)
 \qmlproperty coordinate QtLocation::Map::center
 
QGeoCoordinate center () const
 
void setVisibleRegion (const QGeoShape &shape)
 \qmlproperty geoshape QtLocation::Map::visibleRegion
 
QGeoShape visibleRegion () const
 
void setCopyrightsVisible (bool visible)
 \qmlproperty bool QtLocation::Map::copyrightsVisible
 
bool copyrightsVisible () const
 
void setColor (const QColor &color)
 \qmlproperty color QtLocation::Map::color
 
QColor color () const
 
QRectF visibleArea () const
 \qmlproperty rect QtLocation::Map::visibleArea
 
void setVisibleArea (const QRectF &visibleArea)
 
bool mapReady () const
 \qmlproperty bool QtLocation::Map::mapReady
 
QList< QGeoMapTypesupportedMapTypes ()
 
Q_INVOKABLE void setBearing (qreal bearing, const QGeoCoordinate &coordinate)
 \qmlmethod void QtLocation::Map::setBearing(real bearing, coordinate coordinate)
 
Q_INVOKABLE void alignCoordinateToPoint (const QGeoCoordinate &coordinate, const QPointF &point)
 \qmlmethod void QtLocation::Map::alignCoordinateToPoint(coordinate coordinate, QPointF point)
 
Q_INVOKABLE void removeMapItem (QDeclarativeGeoMapItemBase *item)
 \qmlmethod void QtLocation::Map::removeMapItem(MapItem item)
 
Q_INVOKABLE void addMapItem (QDeclarativeGeoMapItemBase *item)
 \qmlmethod void QtLocation::Map::addMapItem(MapItem item)
 
Q_INVOKABLE void addMapItemGroup (QDeclarativeGeoMapItemGroup *itemGroup)
 \qmlmethod void QtLocation::Map::addMapItemGroup(MapItemGroup itemGroup)
 
Q_INVOKABLE void removeMapItemGroup (QDeclarativeGeoMapItemGroup *itemGroup)
 \qmlmethod void QtLocation::Map::removeMapItemGroup(MapItemGroup itemGroup)
 
Q_INVOKABLE void removeMapItemView (QDeclarativeGeoMapItemView *itemView)
 \qmlmethod void QtLocation::Map::removeMapItemView(MapItemView itemView)
 
Q_INVOKABLE void addMapItemView (QDeclarativeGeoMapItemView *itemView)
 \qmlmethod void QtLocation::Map::addMapItemView(MapItemView itemView)
 
Q_INVOKABLE void clearMapItems ()
 \qmlmethod void QtLocation::Map::clearMapItems()
 
QList< QObject * > mapItems ()
 
Q_INVOKABLE QGeoCoordinate toCoordinate (const QPointF &position, bool clipToViewPort=true) const
 \qmlmethod coordinate QtLocation::Map::toCoordinate(QPointF position, bool clipToViewPort)
 
Q_INVOKABLE QPointF fromCoordinate (const QGeoCoordinate &coordinate, bool clipToViewPort=true) const
 \qmlmethod point QtLocation::Map::fromCoordinate(coordinate coordinate, bool clipToViewPort)
 
Q_INVOKABLE void fitViewportToMapItems (const QVariantList &items={})
 \qmlmethod void QtLocation::Map::fitViewportToMapItems(list<MapItems> items = {})
 
Q_INVOKABLE void fitViewportToVisibleMapItems ()
 \qmlmethod void QtLocation::Map::fitViewportToVisibleMapItems()
 
Q_INVOKABLE void pan (int dx, int dy)
 \qmlmethod void QtLocation::Map::pan(int dx, int dy)
 
Q_INVOKABLE void prefetchData ()
 \qmlmethod void QtLocation::Map::prefetchData()
 
Q_INVOKABLE void clearData ()
 \qmlmethod void QtLocation::Map::clearData()
 
 Q_REVISION (13) Q_INVOKABLE void fitViewportToGeoShape(const QGeoShape &shape
 
void fitViewportToGeoShape (const QGeoShape &shape, const QMargins &borders=QMargins(10, 10, 10, 10))
 \qmlmethod void QtLocation::Map::fitViewportToGeoShape(geoShape, margins)
 
QString errorString () const
 \qmlproperty string QtLocation::Map::errorString
 
QGeoServiceProvider::Error error () const
 \qmlproperty enumeration QtLocation::Map::error
 
QGeoMapmap () const
 
void itemChange (ItemChange, const ItemChangeData &) override
 Called when change occurs for this item.
 
- Public Member Functions inherited from QQuickItem
 QQuickItem (QQuickItem *parent=nullptr)
 Constructs a QQuickItem with the given parent.
 
 ~QQuickItem () override
 Destroys the QQuickItem.
 
QQuickWindowwindow () const
 Returns the window in which this item is rendered.
 
QQuickItemparentItem () const
 
void setParentItem (QQuickItem *parent)
 
void stackBefore (const QQuickItem *)
 Moves the specified sibling item to the index before this item within the list of children.
 
void stackAfter (const QQuickItem *)
 Moves the specified sibling item to the index after this item within the list of children.
 
QRectF childrenRect ()
 \qmlpropertygroup QtQuick::Item::childrenRect \qmlproperty real QtQuick::Item::childrenRect.x \qmlproperty real QtQuick::Item::childrenRect.y \qmlproperty real QtQuick::Item::childrenRect.width \qmlproperty real QtQuick::Item::childrenRect.height \readonly
 
QList< QQuickItem * > childItems () const
 Returns the children of this item.
 
bool clip () const
 \qmlproperty bool QtQuick::Item::clip This property holds whether clipping is enabled.
 
void setClip (bool)
 
QString state () const
 \qmlproperty string QtQuick::Item::state
 
void setState (const QString &)
 
qreal baselineOffset () const
 \qmlproperty int QtQuick::Item::baselineOffset
 
void setBaselineOffset (qreal)
 
QQmlListProperty< QQuickTransformtransform ()
 
qreal x () const
 
qreal y () const
 
QPointF position () const
 
void setX (qreal)
 
void setY (qreal)
 
void setPosition (const QPointF &)
 
QBindable< qrealbindableX ()
 
QBindable< qrealbindableY ()
 
qreal width () const
 
void setWidth (qreal)
 
void resetWidth ()
 
void setImplicitWidth (qreal)
 
qreal implicitWidth () const
 Returns the width of the item that is implied by other properties that determine the content.
 
QBindable< qrealbindableWidth ()
 
qreal height () const
 
void setHeight (qreal)
 
void resetHeight ()
 
void setImplicitHeight (qreal)
 
qreal implicitHeight () const
 
QBindable< qrealbindableHeight ()
 
QSizeF size () const
 
void setSize (const QSizeF &size)
 
TransformOrigin transformOrigin () const
 
void setTransformOrigin (TransformOrigin)
 
QPointF transformOriginPoint () const
 
void setTransformOriginPoint (const QPointF &)
 
qreal z () const
 
void setZ (qreal)
 
qreal rotation () const
 
void setRotation (qreal)
 
qreal scale () const
 
void setScale (qreal)
 
qreal opacity () const
 
void setOpacity (qreal)
 
bool isVisible () const
 
void setVisible (bool)
 
bool isEnabled () const
 
void setEnabled (bool)
 
bool smooth () const
 
void setSmooth (bool)
 
bool activeFocusOnTab () const
 \qmlproperty bool QtQuick::Item::activeFocusOnTab
 
void setActiveFocusOnTab (bool)
 
bool antialiasing () const
 
void setAntialiasing (bool)
 
void resetAntialiasing ()
 
Flags flags () const
 Returns the item flags for this item.
 
void setFlag (Flag flag, bool enabled=true)
 Enables the specified flag for this item if enabled is true; if enabled is false, the flag is disabled.
 
void setFlags (Flags flags)
 Enables the specified flags for this item.
 
virtual QRectF boundingRect () const
 Returns the extents of the item in its own coordinate system: a rectangle from {0, 0} to \l width() and \l height().
 
virtual QRectF clipRect () const
 Returns the rectangular area within this item that is currently visible in \l viewportItem(), if there is a viewport and the \l ItemObservesViewport flag is set; otherwise, the extents of this item in its own coordinate system: a rectangle from {0, 0} to \l width() and \l height().
 
QQuickItemviewportItem () const
 If the \l ItemObservesViewport flag is set, returns the nearest parent with the \l ItemIsViewport flag.
 
bool hasActiveFocus () const
 
bool hasFocus () const
 
void setFocus (bool)
 
void setFocus (bool focus, Qt::FocusReason reason)
 
bool isFocusScope () const
 Returns true if this item is a focus scope, and false otherwise.
 
QQuickItemscopedFocusItem () const
 If this item is a focus scope, this returns the item in its focus chain that currently has focus.
 
Qt::FocusPolicy focusPolicy () const
 
void setFocusPolicy (Qt::FocusPolicy policy)
 Sets the focus policy of this item to policy.
 
bool isAncestorOf (const QQuickItem *child) const
 Returns true if this item is an ancestor of child (i.e., if this item is child's parent, or one of child's parent's ancestors).
 
Qt::MouseButtons acceptedMouseButtons () const
 Returns the mouse buttons accepted by this item.
 
void setAcceptedMouseButtons (Qt::MouseButtons buttons)
 Sets the mouse buttons accepted by this item to buttons.
 
bool acceptHoverEvents () const
 Returns whether hover events are accepted by this item.
 
void setAcceptHoverEvents (bool enabled)
 If enabled is true, this sets the item to accept hover events; otherwise, hover events are not accepted by this item.
 
bool acceptTouchEvents () const
 Returns whether touch events are accepted by this item.
 
void setAcceptTouchEvents (bool accept)
 If enabled is true, this sets the item to accept touch events; otherwise, touch events are not accepted by this item.
 
bool isUnderMouse () const
 
void grabMouse ()
 
void ungrabMouse ()
 
bool keepMouseGrab () const
 Returns whether mouse input should exclusively remain with this item.
 
void setKeepMouseGrab (bool)
 Sets whether the mouse input should remain exclusively with this item.
 
bool filtersChildMouseEvents () const
 Returns whether pointer events intended for this item's children should be filtered through this item.
 
void setFiltersChildMouseEvents (bool filter)
 Sets whether pointer events intended for this item's children should be filtered through this item.
 
void grabTouchPoints (const QList< int > &ids)
 
void ungrabTouchPoints ()
 
bool keepTouchGrab () const
 Returns whether the touch points grabbed by this item should exclusively remain with this item.
 
void setKeepTouchGrab (bool)
 Sets whether the touch points grabbed by this item should remain exclusively with this item.
 
 Q_REVISION (2, 4) Q_INVOKABLE bool grabToImage(const QJSValue &callback
 
QSharedPointer< QQuickItemGrabResultgrabToImage (const QSize &targetSize=QSize())
 Grabs the item into an in-memory image.
 
virtual Q_INVOKABLE bool contains (const QPointF &point) const
 \qmlmethod bool QtQuick::Item::contains(point point)
 
QObjectcontainmentMask () const
 
void setContainmentMask (QObject *mask)
 
QTransform itemTransform (QQuickItem *, bool *) const
 \qmlmethod point QtQuick::Item::mapFromItem(Item item, real x, real y) \qmlmethod point QtQuick::Item::mapFromItem(Item item, point p) \qmlmethod rect QtQuick::Item::mapFromItem(Item item, real x, real y, real width, real height) \qmlmethod rect QtQuick::Item::mapFromItem(Item item, rect r)
 
QPointF mapToScene (const QPointF &point) const
 Maps the given point in this item's coordinate system to the equivalent point within the scene's coordinate system, and returns the mapped coordinate.
 
QRectF mapRectToItem (const QQuickItem *item, const QRectF &rect) const
 Maps the given rect in this item's coordinate system to the equivalent rectangular area within item's coordinate system, and returns the mapped rectangle value.
 
QRectF mapRectToScene (const QRectF &rect) const
 Maps the given rect in this item's coordinate system to the equivalent rectangular area within the scene's coordinate system, and returns the mapped rectangle value.
 
QPointF mapFromScene (const QPointF &point) const
 Maps the given point in the scene's coordinate system to the equivalent point within this item's coordinate system, and returns the mapped coordinate.
 
QRectF mapRectFromItem (const QQuickItem *item, const QRectF &rect) const
 Maps the given rect in item's coordinate system to the equivalent rectangular area within this item's coordinate system, and returns the mapped rectangle value.
 
QRectF mapRectFromScene (const QRectF &rect) const
 Maps the given rect in the scene's coordinate system to the equivalent rectangular area within this item's coordinate system, and returns the mapped rectangle value.
 
void polish ()
 Schedules a polish event for this item.
 
Q_INVOKABLE QPointF mapFromItem (const QQuickItem *item, const QPointF &point) const
 Maps the given point in item's coordinate system to the equivalent point within this item's coordinate system, and returns the mapped coordinate.
 
Q_INVOKABLE QPointF mapFromItem (const QQuickItem *item, qreal x, qreal y)
 
Q_INVOKABLE QRectF mapFromItem (const QQuickItem *item, const QRectF &rect) const
 
Q_INVOKABLE QRectF mapFromItem (const QQuickItem *item, qreal x, qreal y, qreal width, qreal height) const
 
Q_INVOKABLE QPointF mapToItem (const QQuickItem *item, const QPointF &point) const
 Maps the given point in this item's coordinate system to the equivalent point within item's coordinate system, and returns the mapped coordinate.
 
Q_INVOKABLE QPointF mapToItem (const QQuickItem *item, qreal x, qreal y)
 
Q_INVOKABLE QRectF mapToItem (const QQuickItem *item, const QRectF &rect) const
 
Q_INVOKABLE QRectF mapToItem (const QQuickItem *item, qreal x, qreal y, qreal width, qreal height) const
 
 Q_REVISION (2, 7) Q_INVOKABLE QPointF mapFromGlobal(qreal x
 
 Q_REVISION (2, 7) Q_INVOKABLE QPointF mapFromGlobal(const QPointF &point) const
 
 Q_REVISION (2, 7) Q_INVOKABLE QPointF mapToGlobal(qreal x
 
 Q_REVISION (2, 7) Q_INVOKABLE QPointF mapToGlobal(const QPointF &point) const
 
Q_INVOKABLE void forceActiveFocus ()
 \qmlmethod point QtQuick::Item::mapToItem(Item item, real x, real y) \qmlmethod point QtQuick::Item::mapToItem(Item item, point p) \qmlmethod rect QtQuick::Item::mapToItem(Item item, real x, real y, real width, real height) \qmlmethod rect QtQuick::Item::mapToItem(Item item, rect r)
 
Q_INVOKABLE void forceActiveFocus (Qt::FocusReason reason)
 \qmlmethod QtQuick::Item::forceActiveFocus(Qt::FocusReason reason) This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Forces active focus on the item with the given reason.
 
 Q_REVISION (2, 1) Q_INVOKABLE QQuickItem *nextItemInFocusChain(bool forward
 
Q_INVOKABLE QQuickItemchildAt (qreal x, qreal y) const
 \qmlmethod QtQuick::Item::childAt(real x, real y)
 
 Q_REVISION (6, 3) Q_INVOKABLE void ensurePolished()
 
 Q_REVISION (6, 3) Q_INVOKABLE void dumpItemTree() const
 
virtual bool isTextureProvider () const
 Returns true if this item is a texture provider.
 
virtual QSGTextureProvidertextureProvider () const
 Returns the texture provider for an item.
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=nullptr)
 Constructs an object with parent object parent.
 
virtual ~QObject ()
 Destroys the object, deleting all its child objects.
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 Filters events if this object has been installed as an event filter for the watched object.
 
QString objectName () const
 
Q_WEAK_OVERLOAD void setObjectName (const QString &name)
 Sets the object's name to name.
 
void setObjectName (QAnyStringView name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QBindable< QStringbindableObjectName ()
 
bool isWidgetType () const
 Returns true if the object is a widget; otherwise returns false.
 
bool isWindowType () const
 Returns true if the object is a window; otherwise returns false.
 
bool isQuickItemType () const
 Returns true if the object is a QQuickItem; otherwise returns false.
 
bool signalsBlocked () const noexcept
 Returns true if signals are blocked; otherwise returns false.
 
bool blockSignals (bool b) noexcept
 If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it).
 
QThreadthread () const
 Returns the thread in which the object lives.
 
bool moveToThread (QThread *thread QT6_DECL_NEW_OVERLOAD_TAIL)
 Changes the thread affinity for this object and its children and returns true on success.
 
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds.
 
int startTimer (std::chrono::nanoseconds time, Qt::TimerType timerType=Qt::CoarseTimer)
 
void killTimer (int id)
 Kills the timer with timer identifier, id.
 
void killTimer (Qt::TimerId id)
 
template<typename T >
findChild (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object.
 
template<typename T >
QList< T > findChildren (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects.
 
template<typename T >
findChild (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
template<typename T >
QList< T > findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
const QObjectListchildren () const
 Returns a list of child objects.
 
void setParent (QObject *parent)
 Makes the object a child of parent.
 
void installEventFilter (QObject *filterObj)
 Installs an event filter filterObj on this object.
 
void removeEventFilter (QObject *obj)
 Removes an event filter object obj from this object.
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const
 
bool disconnect (const QObject *receiver, const char *member=nullptr) const
 
void dumpObjectTree () const
 Dumps a tree of children to the debug output.
 
void dumpObjectInfo () const
 Dumps information about signal connections, etc.
 
bool setProperty (const char *name, const QVariant &value)
 Sets the value of the object's name property to value.
 
bool setProperty (const char *name, QVariant &&value)
 
QVariant property (const char *name) const
 Returns the value of the object's name property.
 
QList< QByteArraydynamicPropertyNames () const
 
QBindingStoragebindingStorage ()
 
const QBindingStoragebindingStorage () const
 
QObjectparent () const
 Returns a pointer to the parent object.
 
bool inherits (const char *classname) const
 Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false.
 
- Public Member Functions inherited from QQmlParserStatus
 QQmlParserStatus ()
 
virtual ~QQmlParserStatus ()
 

Public Attributes

QVariant margins
 
- Public Attributes inherited from QQuickItem
const QSizetargetSize = QSize())
 
qreal y const
 

Protected Member Functions

void componentComplete () override
 
QSGNodeupdatePaintNode (QSGNode *, UpdatePaintNodeData *) override
 
void geometryChange (const QRectF &newGeometry, const QRectF &oldGeometry) override
 
void setError (QGeoServiceProvider::Error error, const QString &errorString)
 
void initialize ()
 
void setZoomLevel (qreal zoomLevel, bool overzoom)
 
bool addMapChild (QObject *child)
 
bool removeMapChild (QObject *child)
 
bool isGroupNested (QDeclarativeGeoMapItemGroup *group) const
 
bool addMapItem_real (QDeclarativeGeoMapItemBase *item)
 
bool removeMapItem_real (QDeclarativeGeoMapItemBase *item)
 
bool addMapItemGroup_real (QDeclarativeGeoMapItemGroup *itemGroup)
 
bool removeMapItemGroup_real (QDeclarativeGeoMapItemGroup *itemGroup)
 
bool addMapItemView_real (QDeclarativeGeoMapItemView *itemView)
 
bool removeMapItemView_real (QDeclarativeGeoMapItemView *itemView)
 
void updateItemToWindowTransform ()
 
void onSGNodeChanged ()
 
- Protected Member Functions inherited from QQuickItem
bool event (QEvent *) override
 \reimp
 
bool isComponentComplete () const
 Returns true if construction of the QML component is complete; otherwise returns false.
 
bool widthValid () const
 Returns whether the width property has been set explicitly.
 
bool heightValid () const
 Returns whether the height property has been set explicitly.
 
void setImplicitSize (qreal, qreal)
 
void classBegin () override
 \reimp Derived classes should call the base class method before adding their own action to perform at classBegin.
 
void componentComplete () override
 \reimp Derived classes should call the base class method before adding their own actions to perform at componentComplete.
 
virtual void keyPressEvent (QKeyEvent *event)
 This event handler can be reimplemented in a subclass to receive key press events for an item.
 
virtual void keyReleaseEvent (QKeyEvent *event)
 This event handler can be reimplemented in a subclass to receive key release events for an item.
 
virtual void focusInEvent (QFocusEvent *)
 This event handler can be reimplemented in a subclass to receive focus-in events for an item.
 
virtual void focusOutEvent (QFocusEvent *)
 This event handler can be reimplemented in a subclass to receive focus-out events for an item.
 
virtual void mousePressEvent (QMouseEvent *event)
 This event handler can be reimplemented in a subclass to receive mouse press events for an item.
 
virtual void mouseMoveEvent (QMouseEvent *event)
 This event handler can be reimplemented in a subclass to receive mouse move events for an item.
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 This event handler can be reimplemented in a subclass to receive mouse release events for an item.
 
virtual void mouseDoubleClickEvent (QMouseEvent *event)
 This event handler can be reimplemented in a subclass to receive mouse double-click events for an item.
 
virtual void mouseUngrabEvent ()
 This event handler can be reimplemented in a subclass to be notified when a mouse ungrab event has occurred on this item.
 
virtual void touchUngrabEvent ()
 This event handler can be reimplemented in a subclass to be notified when a touch ungrab event has occurred on this item.
 
virtual void touchEvent (QTouchEvent *event)
 This event handler can be reimplemented in a subclass to receive touch events for an item.
 
virtual void hoverEnterEvent (QHoverEvent *event)
 This event handler can be reimplemented in a subclass to receive hover-enter events for an item.
 
virtual void hoverMoveEvent (QHoverEvent *event)
 This event handler can be reimplemented in a subclass to receive hover-move events for an item.
 
virtual void hoverLeaveEvent (QHoverEvent *event)
 This event handler can be reimplemented in a subclass to receive hover-leave events for an item.
 
virtual bool childMouseEventFilter (QQuickItem *, QEvent *)
 Reimplement this method to filter the pointer events that are received by this item's children.
 
virtual void releaseResources ()
 This function is called when an item should release graphics resources which are not already managed by the nodes returned from QQuickItem::updatePaintNode().
 
virtual void updatePolish ()
 This function should perform any layout as required for this item.
 
 QQuickItem (QQuickItemPrivate &dd, QQuickItem *parent=nullptr)
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr.
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 Returns the number of receivers connected to the signal.
 
bool isSignalConnected (const QMetaMethod &signal) const
 
virtual void timerEvent (QTimerEvent *event)
 This event handler can be reimplemented in a subclass to receive timer events for the object.
 
virtual void childEvent (QChildEvent *event)
 This event handler can be reimplemented in a subclass to receive child events.
 
virtual void customEvent (QEvent *event)
 This event handler can be reimplemented in a subclass to receive custom events.
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=nullptr)
 

Properties

QDeclarativeGeoServiceProviderplugin
 
qreal minimumZoomLevel
 
qreal maximumZoomLevel
 
qreal zoomLevel
 
qreal tilt
 
qreal minimumTilt
 
qreal maximumTilt
 
qreal bearing
 
qreal fieldOfView
 
qreal minimumFieldOfView
 
qreal maximumFieldOfView
 
QGeoMapType activeMapType
 
QList< QGeoMapTypesupportedMapTypes
 \qmlproperty list<mapType> QtLocation::Map::supportedMapTypes
 
QGeoCoordinate center
 
QList< QObject * > mapItems
 \qmlproperty list<MapItem> QtLocation::Map::mapItems
 
QGeoServiceProvider::Error error
 
QString errorString
 
QGeoShape visibleRegion
 
bool copyrightsVisible
 
QColor color
 
bool mapReady
 
QRectF visibleArea
 
- Properties inherited from QQuickItem
QQuickItemparent
 \qmlproperty Item QtQuick::Item::parent This property holds the visual parent of the item.
 
qreal x
 \qmlproperty real QtQuick::Item::x \qmlproperty real QtQuick::Item::y \qmlproperty real QtQuick::Item::width \qmlproperty real QtQuick::Item::height
 
qreal y
 Defines the item's y position relative to its parent.
 
qreal z
 \qmlproperty real QtQuick::Item::z
 
qreal width
 This property holds the width of this item.
 
qreal height
 This property holds the height of this item.
 
qreal opacity
 \qmlproperty real QtQuick::Item::opacity
 
bool enabled
 \qmlproperty bool QtQuick::Item::enabled
 
bool visible
 \qmlproperty bool QtQuick::Item::visible
 
Qt::FocusPolicy focusPolicy
 \qmlproperty enumeration QtQuick::Item::focusPolicy
 
qreal rotation
 \qmlproperty real QtQuick::Item::rotation This property holds the rotation of the item in degrees clockwise around its transformOrigin.
 
qreal scale
 \qmlproperty real QtQuick::Item::scale This property holds the scale factor for this item.
 
TransformOrigin transformOrigin
 \qmlproperty enumeration QtQuick::Item::transformOrigin This property holds the origin point around which scale and rotation transform.
 
QPointF transformOriginPoint
 
QQmlListProperty< QQuickTransformtransform
 \qmlproperty list<Transform> QtQuick::Item::transform This property holds the list of transformations to apply.
 
bool smooth
 \qmlproperty bool QtQuick::Item::smooth
 
bool antialiasing
 \qmlproperty bool QtQuick::Item::antialiasing
 
qreal implicitWidth
 
qreal implicitHeight
 
QObjectcontainmentMask
 \qmlproperty QObject* QtQuick::Item::containmentMask
 
- Properties inherited from QObject
QString objectName
 the name of this object
 

Friends

class QDeclarativeGeoMapItem
 
class QDeclarativeGeoMapItemView
 
class QDeclarativeGeoMapCopyrightNotice
 

Additional Inherited Members

- Public Types inherited from QQuickItem
enum  Flag {
  ItemClipsChildrenToShape = 0x01 , ItemIsFocusScope = 0x04 , ItemHasContents = 0x08 , ItemAcceptsDrops = 0x10 ,
  ItemIsViewport = 0x20 , ItemObservesViewport = 0x40
}
 \qmltype Item \instantiates QQuickItem \inherits QtObject \inqmlmodule QtQuick More...
 
enum  ItemChange {
  ItemChildAddedChange , ItemChildRemovedChange , ItemSceneChange , ItemVisibleHasChanged ,
  ItemParentHasChanged , ItemOpacityHasChanged , ItemActiveFocusHasChanged , ItemRotationHasChanged ,
  ItemAntialiasingHasChanged , ItemDevicePixelRatioHasChanged , ItemEnabledHasChanged
}
 Used in conjunction with QQuickItem::itemChange() to notify the item about certain types of changes. More...
 
enum  TransformOrigin {
  TopLeft , Top , TopRight , Left ,
  Center , Right , BottomLeft , Bottom ,
  BottomRight
}
 \variable QQuickItem::ItemChangeData::realValue The numeric value that has changed: \l {QQuickItem::opacity()}{opacity}, \l {QQuickItem::rotation()}{rotation}, or \l {QScreen::devicePixelRatio}{device pixel ratio}. More...
 
- Public Slots inherited from QQuickItem
void update ()
 Schedules a call to updatePaintNode() for this item.
 
- Public Slots inherited from QObject
void deleteLater ()
 \threadsafe
 
- Static Public Member Functions inherited from QObject
static QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 \threadsafe
 
static QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 \threadsafe
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static bool disconnect (const QMetaObject::Connection &)
 Disconnect a connection.
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot)
 
template<typename Func1 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero)
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 

Detailed Description

Definition at line 40 of file qdeclarativegeomap_p.h.

Constructor & Destructor Documentation

◆ QDeclarativeGeoMap()

QDeclarativeGeoMap::QDeclarativeGeoMap ( QQuickItem * parent = nullptr)
explicit

\qmltype Map \instantiates QDeclarativeGeoMap \inqmlmodule QtLocation

Since
QtLocation 5.0

The Map type displays a map.

The Map type is used to display a map or image of the Earth, with the capability to also display interactive objects tied to the map's surface.

There are a variety of different ways to visualize the Earth's surface in a 2-dimensional manner, but all of them involve some kind of projection: a mathematical relationship between the 3D coordinates (latitude, longitude and altitude) and 2D coordinates (X and Y in pixels) on the screen.

Different sources of map data can use different projections, and from the point of view of the Map type, we treat these as one replaceable unit: the Map plugin. A Map plugin consists of a data source, as well as all other details needed to display its data on-screen.

The current Map plugin in use is contained in the \l plugin property of the Map item. In order to display any image in a Map item, you will need to set this property. See the \l Plugin type for a description of how to retrieve an appropriate plugin for use.

The geographic region displayed in the Map item is referred to as its viewport, and this is defined by the properties \l center, and \l zoomLevel. The \l center property contains a \l {coordinate} specifying the center of the viewport, while \l zoomLevel controls the scale of the map. See each of these properties for further details about their values.

When the map is displayed, each possible geographic coordinate that is visible will map to some pixel X and Y coordinate on the screen. To perform conversions between these two, Map provides the \l toCoordinate and \l fromCoordinate functions, which are of general utility.

Definition at line 126 of file qdeclarativegeomap.cpp.

References QQuickItem::ItemClipsChildrenToShape, QQuickItem::ItemHasContents, QGeoCameraCapabilities::maximumFieldOfView, QGeoCameraCapabilities::maximumTilt, QGeoCameraCapabilities::maximumZoomLevel, QGeoCameraCapabilities::minimumFieldOfView, QGeoCameraCapabilities::minimumTilt, QGeoCameraCapabilities::minimumZoomLevel, QGeoMapType::NoMap, QByteArrayLiteral, QGeoCameraData::setCenter(), QQuickItem::setFlags(), QGeoCameraCapabilities::setMaximumFieldOfView(), QGeoCameraCapabilities::setMaximumTilt(), QGeoCameraCapabilities::setMaximumZoomLevel(), QGeoCameraCapabilities::setMinimumFieldOfView(), QGeoCameraCapabilities::setMinimumTilt(), QGeoCameraCapabilities::setMinimumZoomLevel(), QGeoCameraCapabilities::setSupportsBearing(), QGeoCameraCapabilities::setSupportsTilting(), QGeoCameraCapabilities::setTileSize(), QGeoCameraData::setZoomLevel(), and tr.

+ Here is the call graph for this function:

◆ ~QDeclarativeGeoMap()

QDeclarativeGeoMap::~QDeclarativeGeoMap ( )

Definition at line 159 of file qdeclarativegeomap.cpp.

References QPointer< T >::clear(), QGeoMap::clearMapItems(), QPointer< T >::data(), QList< T >::isEmpty(), mapItems, QQuickItem::parent, QQuickItem::parentItem(), removeMapItem_real(), removeMapItemGroup_real(), and removeMapItemView_real().

+ Here is the call graph for this function:

Member Function Documentation

◆ activeMapType()

QGeoMapType QDeclarativeGeoMap::activeMapType ( ) const

Definition at line 1865 of file qdeclarativegeomap.cpp.

◆ activeMapTypeChanged

void QDeclarativeGeoMap::activeMapTypeChanged ( )
signal

Referenced by setActiveMapType().

+ Here is the caller graph for this function:

◆ addMapChild()

bool QDeclarativeGeoMap::addMapChild ( QObject * child)
protected

Definition at line 679 of file qdeclarativegeomap.cpp.

References addMapItem_real(), addMapItemGroup_real(), addMapItemView_real(), and child.

Referenced by addMapItemGroup_real().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addMapItem()

void QDeclarativeGeoMap::addMapItem ( QDeclarativeGeoMapItemBase * item)

\qmlmethod void QtLocation::Map::addMapItem(MapItem item)

Adds the given item to the Map (for example MapQuickItem, MapCircle). If the object already is on the Map, it will not be added again.

As an example, consider the case where you have a MapCircle representing your current position:

\codeline

Note
MapItemViews cannot be added with this method.
See also
mapItems, removeMapItem, clearMapItems

Definition at line 1603 of file qdeclarativegeomap.cpp.

References addMapItem_real(), emit, item, and mapItemsChanged().

+ Here is the call graph for this function:

◆ addMapItem_real()

bool QDeclarativeGeoMap::addMapItem_real ( QDeclarativeGeoMapItemBase * item)
protected

Definition at line 1609 of file qdeclarativegeomap.cpp.

References QGeoMap::addMapItem(), QList< T >::append(), item, QGraphicsItem::parentItem(), and QGraphicsItem::setParentItem().

Referenced by addMapChild(), and addMapItem().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addMapItemGroup()

void QDeclarativeGeoMap::addMapItemGroup ( QDeclarativeGeoMapItemGroup * itemGroup)

\qmlmethod void QtLocation::Map::addMapItemGroup(MapItemGroup itemGroup)

Adds the map items contained in the given itemGroup to the Map (for example MapQuickItem, MapCircle).

See also
MapItemGroup, removeMapItemGroup
Since
5.9

Definition at line 1702 of file qdeclarativegeomap.cpp.

References addMapItemGroup_real(), emit, and mapItemsChanged().

+ Here is the call graph for this function:

◆ addMapItemGroup_real()

bool QDeclarativeGeoMap::addMapItemGroup_real ( QDeclarativeGeoMapItemGroup * itemGroup)
protected

Definition at line 1708 of file qdeclarativegeomap.cpp.

References addMapChild(), QList< T >::append(), and isGroupNested().

Referenced by addMapChild(), addMapItemGroup(), and addMapItemView_real().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addMapItemView()

void QDeclarativeGeoMap::addMapItemView ( QDeclarativeGeoMapItemView * itemView)

\qmlmethod void QtLocation::Map::addMapItemView(MapItemView itemView)

Adds itemView to the Map.

See also
MapItemView, removeMapItemView
Since
5.10

Definition at line 1820 of file qdeclarativegeomap.cpp.

References addMapItemView_real(), emit, and mapItemsChanged().

+ Here is the call graph for this function:

◆ addMapItemView_real()

bool QDeclarativeGeoMap::addMapItemView_real ( QDeclarativeGeoMapItemView * itemView)
protected

Definition at line 1826 of file qdeclarativegeomap.cpp.

References addMapItemGroup_real(), and QList< T >::append().

Referenced by addMapChild(), and addMapItemView().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ alignCoordinateToPoint()

void QDeclarativeGeoMap::alignCoordinateToPoint ( const QGeoCoordinate & coordinate,
const QPointF & point )

\qmlmethod void QtLocation::Map::alignCoordinateToPoint(coordinate coordinate, QPointF point)

Aligns coordinate to point. This method effectively extends the functionality offered by the \l center qml property, allowing to align a coordinate to point of the Map element other than its center. This is useful in those applications where the center of the scene (e.g., a cursor) is not to be placed exactly in the center of the map.

If the map is tilted, and coordinate happens to be behind the camera, or if the map is not ready (see \l mapReady), calling this method will have no effect.

The release of this API with Qt 5.10 is a Technology Preview.

See also
center
Since
5.10

Definition at line 1281 of file qdeclarativegeomap.cpp.

References QGeoMap::anchorCoordinateToPoint(), QGeoMap::capabilities(), QGeoCoordinate::isValid, qIsFinite(), QGeoMap::SupportsAnchoringCoordinate, QPointF::x(), and QPointF::y().

+ Here is the call graph for this function:

◆ bearing()

qreal QDeclarativeGeoMap::bearing ( ) const

Definition at line 790 of file qdeclarativegeomap.cpp.

References QGeoCameraData::bearing(), and QGeoMap::cameraData().

+ Here is the call graph for this function:

◆ bearingChanged

void QDeclarativeGeoMap::bearingChanged ( qreal bearing)
signal

Referenced by setBearing().

+ Here is the caller graph for this function:

◆ center()

QGeoCoordinate QDeclarativeGeoMap::center ( ) const

Definition at line 1054 of file qdeclarativegeomap.cpp.

References QGeoMap::cameraData(), and QGeoCameraData::center().

+ Here is the call graph for this function:

◆ centerChanged

void QDeclarativeGeoMap::centerChanged ( const QGeoCoordinate & coordinate)
signal

Referenced by setCenter().

+ Here is the caller graph for this function:

◆ clearData()

void QDeclarativeGeoMap::clearData ( )

\qmlmethod void QtLocation::Map::clearData()

Clears map data collected by the currently selected plugin.

Note
This method will delete cached files.
See also
plugin

Definition at line 1370 of file qdeclarativegeomap.cpp.

References QGeoMap::clearData().

+ Here is the call graph for this function:

◆ clearMapItems()

void QDeclarativeGeoMap::clearMapItems ( )

\qmlmethod void QtLocation::Map::clearMapItems()

Removes all items and item groups from the map.

See also
mapItems, addMapItem, removeMapItem, addMapItemGroup, removeMapItemGroup

Definition at line 1663 of file qdeclarativegeomap.cpp.

References QList< T >::at(), QList< T >::count(), emit, QList< T >::first(), i, QList< T >::isEmpty(), item, mapItemsChanged(), QGraphicsItem::parentItem(), removeMapItem_real(), and removeMapItemGroup_real().

+ Here is the call graph for this function:

◆ color()

QColor QDeclarativeGeoMap::color ( ) const

Definition at line 1176 of file qdeclarativegeomap.cpp.

◆ colorChanged

void QDeclarativeGeoMap::colorChanged ( const QColor & color)
signal

◆ componentComplete()

void QDeclarativeGeoMap::componentComplete ( )
overrideprotectedvirtual

Implements QQmlParserStatus.

Definition at line 328 of file qdeclarativegeomap.cpp.

References QQuickItem::componentComplete().

+ Here is the call graph for this function:

◆ copyrightLinkActivated

void QDeclarativeGeoMap::copyrightLinkActivated ( const QString & link)
signal

Referenced by QDeclarativeGeoMapCopyrightNotice::connectMap().

+ Here is the caller graph for this function:

◆ copyrightsChanged

void QDeclarativeGeoMap::copyrightsChanged ( const QString & copyrightsHtml)
signal

Referenced by QDeclarativeGeoMapCopyrightNotice::setMapSource().

+ Here is the caller graph for this function:

◆ copyrightsImageChanged

void QDeclarativeGeoMap::copyrightsImageChanged ( const QImage & copyrightsImage)
signal

Referenced by QDeclarativeGeoMapCopyrightNotice::setMapSource().

+ Here is the caller graph for this function:

◆ copyrightsVisible()

bool QDeclarativeGeoMap::copyrightsVisible ( ) const

Definition at line 1153 of file qdeclarativegeomap.cpp.

◆ copyrightsVisibleChanged

void QDeclarativeGeoMap::copyrightsVisibleChanged ( bool visible)
signal

Referenced by setCopyrightsVisible().

+ Here is the caller graph for this function:

◆ error()

QGeoServiceProvider::Error QDeclarativeGeoMap::error ( ) const

\qmlproperty enumeration QtLocation::Map::error

This read-only property holds the last occurred mapping service provider error.

\list

  • Map.NoError - No error has occurred.
  • Map.NotSupportedError -The maps plugin property was not set or there is no mapping manager associated with the plugin.
  • Map.UnknownParameterError -The plugin did not recognize one of the parameters it was given.
  • Map.MissingRequiredParameterError - The plugin did not find one of the parameters it was expecting.
  • Map.ConnectionError - The plugin could not connect to its backend service or database. \endlist
See also
QGeoServiceProvider::Error

Definition at line 1467 of file qdeclarativegeomap.cpp.

◆ errorChanged

void QDeclarativeGeoMap::errorChanged ( )
signal

Referenced by setError().

+ Here is the caller graph for this function:

◆ errorString()

QString QDeclarativeGeoMap::errorString ( ) const

\qmlproperty string QtLocation::Map::errorString

This read-only property holds the textual presentation of the latest mapping provider error. If no error has occurred, an empty string is returned.

An empty string may also be returned if an error occurred which has no associated textual representation.

See also
QGeoServiceProvider::errorString()

Definition at line 1446 of file qdeclarativegeomap.cpp.

◆ fieldOfView()

qreal QDeclarativeGeoMap::fieldOfView ( ) const

Definition at line 888 of file qdeclarativegeomap.cpp.

References QGeoMap::cameraData(), and QGeoCameraData::fieldOfView().

+ Here is the call graph for this function:

◆ fieldOfViewChanged

void QDeclarativeGeoMap::fieldOfViewChanged ( qreal fieldOfView)
signal

Referenced by setFieldOfView().

+ Here is the caller graph for this function:

◆ fitViewportToGeoShape()

void QDeclarativeGeoMap::fitViewportToGeoShape ( const QGeoShape & shape,
const QMargins & borders = QMargins(10, 10, 10, 10) )

\qmlmethod void QtLocation::Map::fitViewportToGeoShape(geoShape, margins)

Fits the viewport to a specific geo shape geoShape. The margins are in screen pixels.

Note
If the projection used by the plugin is not WebMercator, and the plugin does not have fitting to shape capability, this method will do nothing.
See also
visibleRegion
Since
5.13

Definition at line 1388 of file qdeclarativegeomap.cpp.

References fitViewportToGeoShape(), margins, QVariant::toDouble(), and QVariant::typeId().

Referenced by fitViewportToGeoShape(), geometryChange(), and setVisibleRegion().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fitViewportToMapItems()

void QDeclarativeGeoMap::fitViewportToMapItems ( const QVariantList & items = {})

\qmlmethod void QtLocation::Map::fitViewportToMapItems(list<MapItems> items = {})

If no argument is provided, fits the current viewport to the boundary of all map items. The camera is positioned in the center of the map items, and at the largest integral zoom level possible which allows all map items to be visible on screen. If items is provided, fits the current viewport to the boundary of the specified map items only.

Note
This method gained the optional items argument since Qt 5.15. In previous releases, this method fitted the map to all map items.
See also
fitViewportToVisibleMapItems

Definition at line 1937 of file qdeclarativegeomap.cpp.

References i, items, and QList< T >::size().

+ Here is the call graph for this function:

◆ fitViewportToVisibleMapItems()

void QDeclarativeGeoMap::fitViewportToVisibleMapItems ( )

\qmlmethod void QtLocation::Map::fitViewportToVisibleMapItems()

Fits the current viewport to the boundary of all visible map items. The camera is positioned in the center of the map items, and at the largest integral zoom level possible which allows all map items to be visible on screen.

See also
fitViewportToMapItems

Definition at line 1961 of file qdeclarativegeomap.cpp.

◆ fromCoordinate()

QPointF QDeclarativeGeoMap::fromCoordinate ( const QGeoCoordinate & coordinate,
bool clipToViewPort = true ) const

\qmlmethod point QtLocation::Map::fromCoordinate(coordinate coordinate, bool clipToViewPort)

Returns the position relative to the map item which corresponds to the coordinate.

If clipToViewPort is true, or not supplied then returns an invalid QPointF if coordinate is not within the current viewport.

Definition at line 1318 of file qdeclarativegeomap.cpp.

References QGeoProjection::coordinateToItemPosition(), QGeoMap::geoProjection(), and qQNaN().

+ Here is the call graph for this function:

◆ geometryChange()

void QDeclarativeGeoMap::geometryChange ( const QRectF & newGeometry,
const QRectF & oldGeometry )
overrideprotectedvirtual

◆ initialize()

◆ isGroupNested()

bool QDeclarativeGeoMap::isGroupNested ( QDeclarativeGeoMapItemGroup * group) const
protected

Definition at line 715 of file qdeclarativegeomap.cpp.

References QQuickItem::parent.

Referenced by addMapItemGroup_real().

+ Here is the caller graph for this function:

◆ itemChange()

void QDeclarativeGeoMap::itemChange ( ItemChange change,
const ItemChangeData & value )
overridevirtual

Called when change occurs for this item.

value contains extra information relating to the change, when applicable.

If you re-implement this method in a subclass, be sure to call

virtual void itemChange(ItemChange, const ItemChangeData &)
Called when change occurs for this item.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]

typically at the end of your implementation, to ensure the \l windowChanged() signal will be emitted.

Reimplemented from QQuickItem.

Definition at line 1477 of file qdeclarativegeomap.cpp.

References QQuickWindow::beforeSynchronizing(), child, QObject::connect(), Qt::DirectConnection, disconnect(), QQuickItem::itemChange(), QQuickItem::ItemChildAddedChange, QQuickItem::ItemSceneChange, QDeclarativeGeoMapCopyrightNotice::setCopyrightsZ(), updateItemToWindowTransform(), and QQuickItem::z.

+ Here is the call graph for this function:

◆ map()

QGeoMap * QDeclarativeGeoMap::map ( ) const

Definition at line 1472 of file qdeclarativegeomap.cpp.

◆ mapItems()

QList< QObject * > QDeclarativeGeoMap::mapItems ( )

◆ mapItemsChanged

void QDeclarativeGeoMap::mapItemsChanged ( )
signal

Referenced by addMapItem(), addMapItemGroup(), addMapItemView(), clearMapItems(), removeMapItem(), removeMapItemGroup(), and removeMapItemView().

+ Here is the caller graph for this function:

◆ mapReady()

bool QDeclarativeGeoMap::mapReady ( ) const

\qmlproperty bool QtLocation::Map::mapReady

This property holds whether the map has been successfully initialized and is ready to be used. Some methods, such as \l fromCoordinate and \l toCoordinate, will not work before the map is ready. Due to the architecture of the \l Map, it's advised to use the signal emitted for this property in place of \l {QtQml::Component::completed()}{Component.onCompleted}, to make sure that everything behaves as expected.

Since
5.9

Definition at line 1235 of file qdeclarativegeomap.cpp.

◆ mapReadyChanged

void QDeclarativeGeoMap::mapReadyChanged ( bool ready)
signal

Referenced by initialize(), and QDeclarativeGeoMapCopyrightNotice::setMapSource().

+ Here is the caller graph for this function:

◆ maximumFieldOfView()

qreal QDeclarativeGeoMap::maximumFieldOfView ( ) const

\qmlproperty real QtLocation::Map::maximumFieldOfView

This property holds the maximum valid field of view for the map, in degrees.

The minimum tilt field of view by the \l plugin used is an upper bound for this property. If the \l plugin property is not set or the plugin does not support mapping, this property is 179.

See also
fieldOfView, minimumFieldOfView
Since
QtLocation 5.9

Definition at line 961 of file qdeclarativegeomap.cpp.

References qMax(), and qMin().

+ Here is the call graph for this function:

◆ maximumFieldOfViewChanged

void QDeclarativeGeoMap::maximumFieldOfViewChanged ( qreal maximumFieldOfView)
signal

Referenced by setMaximumFieldOfView().

+ Here is the caller graph for this function:

◆ maximumTilt()

qreal QDeclarativeGeoMap::maximumTilt ( ) const

\qmlproperty real QtLocation::Map::maximumTilt

This property holds the maximum valid tilt for the map, in degrees.

The maximum tilt defined by the \l plugin used is an upper bound for this property. If the \l plugin property is not set or the plugin does not support mapping, this property is 89.5.

Since QtLocation 5.12, plugins can additionally restrict this value depending on the current zoom level.

See also
tilt, minimumTilt
Since
QtLocation 5.9

Definition at line 1019 of file qdeclarativegeomap.cpp.

References qMax(), and qMin().

+ Here is the call graph for this function:

◆ maximumTiltChanged

void QDeclarativeGeoMap::maximumTiltChanged ( qreal maximumTilt)
signal

Referenced by setMaximumTilt().

+ Here is the caller graph for this function:

◆ maximumZoomLevel()

qreal QDeclarativeGeoMap::maximumZoomLevel ( ) const

\qmlproperty real QtLocation::Map::maximumZoomLevel

This property holds the maximum valid zoom level for the map.

The maximum zoom level is defined by the \l plugin used. If the \l plugin property is not set or the plugin does not support mapping, this property is 30.

Definition at line 619 of file qdeclarativegeomap.cpp.

References qMax(), and qMin().

+ Here is the call graph for this function:

◆ maximumZoomLevelChanged

void QDeclarativeGeoMap::maximumZoomLevelChanged ( qreal maximumZoomLevel)
signal

Referenced by setMaximumZoomLevel().

+ Here is the caller graph for this function:

◆ minimumFieldOfView()

qreal QDeclarativeGeoMap::minimumFieldOfView ( ) const

\qmlproperty real QtLocation::Map::minimumFieldOfView

This property holds the minimum valid field of view for the map, in degrees.

The minimum tilt field of view by the \l plugin used is a lower bound for this property. If the \l plugin property is not set or the plugin does not support mapping, this property is 1.

See also
fieldOfView, maximumFieldOfView
Since
QtLocation 5.9

Definition at line 926 of file qdeclarativegeomap.cpp.

References qMax(), and qMin().

+ Here is the call graph for this function:

◆ minimumFieldOfViewChanged

void QDeclarativeGeoMap::minimumFieldOfViewChanged ( qreal minimumFieldOfView)
signal

Referenced by setMinimumFieldOfView().

+ Here is the caller graph for this function:

◆ minimumTilt()

qreal QDeclarativeGeoMap::minimumTilt ( ) const

\qmlproperty real QtLocation::Map::minimumTilt

This property holds the minimum valid tilt for the map, in degrees.

The minimum tilt defined by the \l plugin used is a lower bound for this property. If the \l plugin property is not set or the plugin does not support mapping, this property is 0.

Since QtLocation 5.12, plugins can additionally restrict this value depending on the current zoom level.

See also
tilt, maximumTilt
Since
QtLocation 5.9

Definition at line 981 of file qdeclarativegeomap.cpp.

References qMax(), and qMin().

+ Here is the call graph for this function:

◆ minimumTiltChanged

void QDeclarativeGeoMap::minimumTiltChanged ( qreal minimumTilt)
signal

Referenced by setMinimumTilt().

+ Here is the caller graph for this function:

◆ minimumZoomLevel()

qreal QDeclarativeGeoMap::minimumZoomLevel ( ) const

\qmlproperty real QtLocation::Map::minimumZoomLevel

This property holds the minimum valid zoom level for the map.

The minimum zoom level defined by the \l plugin used is a lower bound for this property. However, the returned value is also canvas-size-dependent, and can be higher than the user-specified value, or than the minimum zoom level defined by the plugin used, to prevent the map from being smaller than the viewport in either dimension.

If the \l plugin property is not set or the plugin does not support mapping, this property is 0.

Definition at line 582 of file qdeclarativegeomap.cpp.

References qMax(), and qMin().

+ Here is the call graph for this function:

◆ minimumZoomLevelChanged

void QDeclarativeGeoMap::minimumZoomLevelChanged ( qreal minimumZoomLevel)
signal

Referenced by setMinimumZoomLevel().

+ Here is the caller graph for this function:

◆ onSGNodeChanged()

void QDeclarativeGeoMap::onSGNodeChanged ( )
protected

Definition at line 1805 of file qdeclarativegeomap.cpp.

References QQuickItem::update().

+ Here is the call graph for this function:

◆ pan()

void QDeclarativeGeoMap::pan ( int dx,
int dy )

\qmlmethod void QtLocation::Map::pan(int dx, int dy)

Starts panning the map by dx pixels along the x-axis and by dy pixels along the y-axis.

Positive values for dx move the map right, negative values left. Positive values for dy move the map down, negative values up.

During panning the \l center, and \l zoomLevel may change.

Definition at line 1337 of file qdeclarativegeomap.cpp.

References QGeoMap::geoProjection(), QGeoProjection::itemPositionToCoordinate(), setCenter(), QGeoMap::viewportHeight(), and QGeoMap::viewportWidth().

+ Here is the call graph for this function:

◆ plugin()

QDeclarativeGeoServiceProvider * QDeclarativeGeoMap::plugin ( ) const

Definition at line 538 of file qdeclarativegeomap.cpp.

◆ pluginChanged

void QDeclarativeGeoMap::pluginChanged ( QDeclarativeGeoServiceProvider * plugin)
signal

Referenced by setPlugin().

+ Here is the caller graph for this function:

◆ prefetchData()

void QDeclarativeGeoMap::prefetchData ( )

\qmlmethod void QtLocation::Map::prefetchData()

Optional hint that allows the map to prefetch during this idle period

Definition at line 1356 of file qdeclarativegeomap.cpp.

References QGeoMap::prefetchData().

+ Here is the call graph for this function:

◆ Q_REVISION() [1/2]

QDeclarativeGeoMap::Q_REVISION ( 13 ) const &

◆ Q_REVISION [2/2]

QDeclarativeGeoMap::Q_REVISION ( 14 )
signal

◆ removeMapChild()

bool QDeclarativeGeoMap::removeMapChild ( QObject * child)
protected

Definition at line 697 of file qdeclarativegeomap.cpp.

References child, removeMapItem_real(), removeMapItemGroup_real(), and removeMapItemView_real().

Referenced by removeMapItemGroup_real().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeMapItem()

void QDeclarativeGeoMap::removeMapItem ( QDeclarativeGeoMapItemBase * ptr)

\qmlmethod void QtLocation::Map::removeMapItem(MapItem item)

Removes the given item from the Map (for example MapQuickItem, MapCircle). If the MapItem does not exist or was not previously added to the map, the method does nothing.

See also
mapItems, addMapItem, clearMapItems

Definition at line 1633 of file qdeclarativegeomap.cpp.

References emit, mapItemsChanged(), ptr(), and removeMapItem_real().

Referenced by QDeclarativeGeoMapItemBase::~QDeclarativeGeoMapItemBase().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeMapItem_real()

bool QDeclarativeGeoMap::removeMapItem_real ( QDeclarativeGeoMapItemBase * item)
protected

Definition at line 1639 of file qdeclarativegeomap.cpp.

References QListSpecialMethodsBase< T >::contains(), item, QGraphicsItem::parentItem(), ptr(), QGeoMap::removeMapItem(), QList< T >::removeOne(), and QGraphicsItem::setParentItem().

Referenced by ~QDeclarativeGeoMap(), clearMapItems(), removeMapChild(), and removeMapItem().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeMapItemGroup()

void QDeclarativeGeoMap::removeMapItemGroup ( QDeclarativeGeoMapItemGroup * itemGroup)

\qmlmethod void QtLocation::Map::removeMapItemGroup(MapItemGroup itemGroup)

Removes itemGroup and the items contained therein from the Map.

See also
MapItemGroup, addMapItemGroup
Since
5.9

Definition at line 1738 of file qdeclarativegeomap.cpp.

References emit, mapItemsChanged(), and removeMapItemGroup_real().

+ Here is the call graph for this function:

◆ removeMapItemGroup_real()

bool QDeclarativeGeoMap::removeMapItemGroup_real ( QDeclarativeGeoMapItemGroup * itemGroup)
protected

Definition at line 1744 of file qdeclarativegeomap.cpp.

References removeMapChild(), and QList< T >::removeOne().

Referenced by ~QDeclarativeGeoMap(), clearMapItems(), removeMapChild(), removeMapItemGroup(), and removeMapItemView_real().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeMapItemView()

void QDeclarativeGeoMap::removeMapItemView ( QDeclarativeGeoMapItemView * itemView)

\qmlmethod void QtLocation::Map::removeMapItemView(MapItemView itemView)

Removes itemView and the items instantiated by it from the Map.

See also
MapItemView, addMapItemView
Since
5.10

Definition at line 1773 of file qdeclarativegeomap.cpp.

References emit, mapItemsChanged(), and removeMapItemView_real().

+ Here is the call graph for this function:

◆ removeMapItemView_real()

bool QDeclarativeGeoMap::removeMapItemView_real ( QDeclarativeGeoMapItemView * itemView)
protected

Definition at line 1779 of file qdeclarativegeomap.cpp.

References QDeclarativeGeoMapItemView::removeInstantiatedItems(), removeMapItemGroup_real(), and QList< T >::removeOne().

Referenced by ~QDeclarativeGeoMap(), removeMapChild(), and removeMapItemView().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setActiveMapType()

void QDeclarativeGeoMap::setActiveMapType ( const QGeoMapType & mapType)

\qmlproperty mapType QtLocation::Map::activeMapType

Access to the currently active \l{mapType}{map type}.

This property can be set to change the active \l{mapType}{map type}. See the \l{Map::supportedMapTypes}{supportedMapTypes} property for possible values.

See also
mapType

Definition at line 1849 of file qdeclarativegeomap.cpp.

References activeMapTypeChanged(), emit, QDeclarativeGeoServiceProvider::name, QGeoMapType::pluginName(), QGeoMap::setActiveMapType(), and QString::toLatin1().

+ Here is the call graph for this function:

◆ setBearing() [1/2]

void QDeclarativeGeoMap::setBearing ( qreal bearing)

\qmlproperty real QtLocation::Map::bearing

This property holds the bearing for the map. The default value is 0. If the Plugin used for the Map supports bearing, the valid range for this value is between 0 and 360. If the Plugin used for the Map does not support bearing, changing this property will have no effect.

Since
QtLocation 5.9

Definition at line 742 of file qdeclarativegeomap.cpp.

References QGeoCameraData::bearing(), bearing, bearingChanged(), QGeoMap::cameraData(), emit, sanitizeBearing(), QGeoCameraData::setBearing(), and QGeoMap::setCameraData().

+ Here is the call graph for this function:

◆ setBearing() [2/2]

void QDeclarativeGeoMap::setBearing ( qreal bearing,
const QGeoCoordinate & coordinate )

\qmlmethod void QtLocation::Map::setBearing(real bearing, coordinate coordinate)

Sets the bearing for the map to bearing, rotating it around coordinate. If the Plugin used for the Map supports bearing, the valid range for bearing is between 0 and 360. If the Plugin used for the Map does not support bearing, or if the map is tilted and coordinate happens to be behind the camera, or if the map is not ready (see \l mapReady), calling this method will have no effect.

The release of this API with Qt 5.10 is a Technology Preview.

Since
5.10

Definition at line 772 of file qdeclarativegeomap.cpp.

References bearing, QGeoMap::capabilities(), center, QGeoCoordinate::isValid, qIsFinite(), sanitizeBearing(), QGeoMap::setBearing(), and QGeoMap::SupportsSetBearing.

+ Here is the call graph for this function:

◆ setCenter()

void QDeclarativeGeoMap::setCenter ( const QGeoCoordinate & center)

\qmlproperty coordinate QtLocation::Map::center

This property holds the coordinate which occupies the center of the mapping viewport. Invalid center coordinates are ignored.

The default value is an arbitrary valid coordinate.

Definition at line 1032 of file qdeclarativegeomap.cpp.

References QGeoMap::cameraData(), QGeoCameraData::center(), center, centerChanged(), emit, QGeoCoordinate::isValid, QGeoCoordinate::latitude, qBound(), QGeoMap::setCameraData(), and QGeoCameraData::setCenter().

Referenced by pan().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setColor()

void QDeclarativeGeoMap::setColor ( const QColor & color)

\qmlproperty color QtLocation::Map::color

This property holds the background color of the map element.

Since
5.6

Definition at line 1167 of file qdeclarativegeomap.cpp.

References color, colorChanged(), emit, and QQuickItem::update().

+ Here is the call graph for this function:

◆ setCopyrightsVisible()

void QDeclarativeGeoMap::setCopyrightsVisible ( bool visible)

\qmlproperty bool QtLocation::Map::copyrightsVisible

This property holds the visibility of the copyrights notice. The notice is usually displayed in the bottom left corner. By default, this property is set to true.

Note
Many map providers require the notice to be visible as part of the terms and conditions. Please consult the relevant provider documentation before turning this notice off.
Since
5.7

Definition at line 1141 of file qdeclarativegeomap.cpp.

References copyrightsVisibleChanged(), emit, QPointer< T >::isNull(), QDeclarativeGeoMapCopyrightNotice::setCopyrightsVisible(), and QQuickItem::visible.

+ Here is the call graph for this function:

◆ setError()

void QDeclarativeGeoMap::setError ( QGeoServiceProvider::Error error,
const QString & errorString )
protected

Definition at line 226 of file qdeclarativegeomap.cpp.

References emit, error, errorChanged(), and errorString.

+ Here is the call graph for this function:

◆ setFieldOfView()

void QDeclarativeGeoMap::setFieldOfView ( qreal fieldOfView)

\qmlproperty real QtLocation::Map::fieldOfView

This property holds the field of view of the camera used to look at the map, in degrees. If the plugin property of the map is not set, or the plugin does not support mapping, the value is 45 degrees.

Note that changing this value implicitly changes also the distance between the camera and the map, so that, at a tilting angle of 0 degrees, the resulting image is identical for any value used for this property.

For more information about this parameter, consult the Wikipedia articles about \l {https://en.wikipedia.org/wiki/Field_of_view} {Field of view} and \l {https://en.wikipedia.org/wiki/Angle_of_view} {Angle of view}.

See also
minimumFieldOfView, maximumFieldOfView
Since
QtLocation 5.9

Definition at line 869 of file qdeclarativegeomap.cpp.

References QGeoMap::cameraData(), emit, QGeoCameraData::fieldOfView(), fieldOfView, fieldOfViewChanged(), maximumFieldOfView, minimumFieldOfView, qBound(), QGeoMap::setCameraData(), and QGeoCameraData::setFieldOfView().

Referenced by setMaximumFieldOfView(), and setMinimumFieldOfView().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setMaximumFieldOfView()

void QDeclarativeGeoMap::setMaximumFieldOfView ( qreal maximumFieldOfView,
bool userSet = true )

Definition at line 931 of file qdeclarativegeomap.cpp.

References emit, fieldOfView, maximumFieldOfView, maximumFieldOfViewChanged(), and setFieldOfView().

+ Here is the call graph for this function:

◆ setMaximumTilt()

void QDeclarativeGeoMap::setMaximumTilt ( qreal maximumTilt,
bool userSet = true )

Definition at line 986 of file qdeclarativegeomap.cpp.

References emit, maximumTilt, maximumTiltChanged(), setTilt(), and tilt.

+ Here is the call graph for this function:

◆ setMaximumZoomLevel()

void QDeclarativeGeoMap::setMaximumZoomLevel ( qreal maximumZoomLevel,
bool userSet = true )

Sets the gesture areas maximum zoom level. If the camera capabilities has been set this method honors the boundaries set by it.

Definition at line 592 of file qdeclarativegeomap.cpp.

References emit, maximumZoomLevel, maximumZoomLevelChanged(), setZoomLevel(), and zoomLevel.

+ Here is the call graph for this function:

◆ setMinimumFieldOfView()

void QDeclarativeGeoMap::setMinimumFieldOfView ( qreal minimumFieldOfView,
bool userSet = true )

Definition at line 895 of file qdeclarativegeomap.cpp.

References emit, fieldOfView, minimumFieldOfView, minimumFieldOfViewChanged(), and setFieldOfView().

+ Here is the call graph for this function:

◆ setMinimumTilt()

void QDeclarativeGeoMap::setMinimumTilt ( qreal minimumTilt,
bool userSet = true )

Definition at line 835 of file qdeclarativegeomap.cpp.

References emit, minimumTilt, minimumTiltChanged(), setTilt(), and tilt.

+ Here is the call graph for this function:

◆ setMinimumZoomLevel()

void QDeclarativeGeoMap::setMinimumZoomLevel ( qreal minimumZoomLevel,
bool userSet = true )

Sets the gesture areas minimum zoom level. If the camera capabilities has been set this method honors the boundaries set by it. The minimum zoom level will also have a lower bound dependent on the size of the canvas, effectively preventing to display out of bounds areas.

Definition at line 550 of file qdeclarativegeomap.cpp.

References emit, minimumZoomLevel, minimumZoomLevelChanged(), setZoomLevel(), and zoomLevel.

Referenced by geometryChange(), and initialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setPlugin()

void QDeclarativeGeoMap::setPlugin ( QDeclarativeGeoServiceProvider * plugin)

\qmlproperty Plugin QtLocation::Map::plugin

This property holds the plugin which provides the mapping functionality.

This is a write-once property. Once the map has a plugin associated with it, any attempted modifications of the plugin will be ignored.

Definition at line 394 of file qdeclarativegeomap.cpp.

References QDeclarativeGeoServiceProvider::attached(), QObject::connect(), emit, QDeclarativeGeoServiceProvider::isAttached, plugin, pluginChanged(), qmlWarning(), and QStringLiteral.

+ Here is the call graph for this function:

◆ setTilt()

void QDeclarativeGeoMap::setTilt ( qreal tilt)

\qmlproperty real QtLocation::Map::tilt

This property holds the tilt for the map, in degrees. The default value is 0. The valid range for this value is [ minimumTilt, maximumTilt ]. If the Plugin used for the Map does not support tilting, changing this property will have no effect.

See also
minimumTilt, maximumTilt
Since
QtLocation 5.9

Definition at line 809 of file qdeclarativegeomap.cpp.

References QGeoMap::cameraData(), emit, maximumTilt, minimumTilt, qBound(), QGeoMap::setCameraData(), QGeoCameraData::setTilt(), QGeoCameraData::tilt(), tilt, and tiltChanged().

Referenced by setMaximumTilt(), and setMinimumTilt().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setVisibleArea()

void QDeclarativeGeoMap::setVisibleArea ( const QRectF & visibleArea)

Definition at line 1198 of file qdeclarativegeomap.cpp.

References emit, i, QRectF::isEmpty(), QRectF::isValid(), QGeoMap::setVisibleArea(), visibleArea, and visibleAreaChanged().

+ Here is the call graph for this function:

◆ setVisibleRegion()

void QDeclarativeGeoMap::setVisibleRegion ( const QGeoShape & shape)

\qmlproperty geoshape QtLocation::Map::visibleRegion

This property holds the region which occupies the viewport of the map. The camera is positioned in the center of the shape, and at the largest integral zoom level possible which allows the whole shape to be visible on the screen. This implies that reading this property back shortly after having been set the returned area is equal or larger than the set area.

Setting this property implicitly changes the \l center and \l zoomLevel of the map. Any previously set value to those properties will be overridden.

Note
Since Qt 5.14 This property provides change notifications.
Since
5.6

Definition at line 1080 of file qdeclarativegeomap.cpp.

References QGeoRectangle::bottomRight, QGeoShape::boundingGeoRectangle(), emit, fitViewportToGeoShape(), QQuickItem::height, QGeoShape::isValid, QGeoCoordinate::latitude, QGeoRectangle::topLeft, visibleRegion, and QQuickItem::width.

+ Here is the call graph for this function:

◆ setZoomLevel() [1/2]

void QDeclarativeGeoMap::setZoomLevel ( qreal zoomLevel)

\qmlproperty real QtLocation::Map::zoomLevel

This property holds the zoom level for the map.

Larger values for the zoom level provide more detail. Zoom levels are always non-negative. The default value is 8.0. Depending on the plugin in use, values outside the [minimumZoomLevel, maximumZoomLevel] range, which represent the range for which tiles are available, may be accepted, or clamped.

Definition at line 634 of file qdeclarativegeomap.cpp.

References QGeoCameraCapabilities::overzoomEnabled(), setZoomLevel(), and zoomLevel.

Referenced by setMaximumZoomLevel(), setMinimumZoomLevel(), and setZoomLevel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setZoomLevel() [2/2]

void QDeclarativeGeoMap::setZoomLevel ( qreal zoomLevel,
bool overzoom )
protected

Sets the zoom level. Larger values for the zoom level provide more detail. Zoom levels are always non-negative. The default value is 8.0. Values outside the [minimumZoomLevel, maximumZoomLevel] range, which represent the range for which tiles are available, can be accepted or clamped by setting the overzoom argument to true or false respectively.

Definition at line 649 of file qdeclarativegeomap.cpp.

References QGeoMap::cameraData(), QGeoCameraData::center(), emit, QGeoMap::maximumCenterLatitudeAtZoom(), maximumZoomLevel, QGeoMap::minimumCenterLatitudeAtZoom(), QGeoMap::minimumZoom(), QGeoCameraCapabilities::minimumZoomLevel, qBound(), QGeoMap::setCameraData(), QGeoCameraData::setCenter(), QGeoCoordinate::setLatitude(), QGeoCameraData::setZoomLevel(), QGeoCameraData::zoomLevel(), zoomLevel, and zoomLevelChanged().

+ Here is the call graph for this function:

◆ supportedMapTypes()

QList< QGeoMapType > QDeclarativeGeoMap::supportedMapTypes ( )

◆ supportedMapTypesChanged

void QDeclarativeGeoMap::supportedMapTypesChanged ( )
signal

◆ tilt()

qreal QDeclarativeGeoMap::tilt ( ) const

Definition at line 828 of file qdeclarativegeomap.cpp.

References QGeoMap::cameraData(), and QGeoCameraData::tilt().

+ Here is the call graph for this function:

◆ tiltChanged

void QDeclarativeGeoMap::tiltChanged ( qreal tilt)
signal

Referenced by setTilt().

+ Here is the caller graph for this function:

◆ toCoordinate()

QGeoCoordinate QDeclarativeGeoMap::toCoordinate ( const QPointF & position,
bool clipToViewPort = true ) const

\qmlmethod coordinate QtLocation::Map::toCoordinate(QPointF position, bool clipToViewPort)

Returns the coordinate which corresponds to the position relative to the map item.

If clipToViewPort is true, or not supplied then returns an invalid coordinate if position is not within the current viewport.

Definition at line 1302 of file qdeclarativegeomap.cpp.

References QGeoMap::geoProjection(), QGeoProjection::itemPositionToCoordinate(), and QQuickItem::position().

+ Here is the call graph for this function:

◆ updateItemToWindowTransform()

void QDeclarativeGeoMap::updateItemToWindowTransform ( )
protected

Definition at line 1790 of file qdeclarativegeomap.cpp.

References QQuickItemPrivate::get(), property, QGeoMap::setItemToWindowTransform(), and toBool().

Referenced by itemChange().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updatePaintNode()

QSGNode * QDeclarativeGeoMap::updatePaintNode ( QSGNode * oldNode,
UpdatePaintNodeData *  )
overrideprotectedvirtual

Reimplemented from QQuickItem.

Definition at line 363 of file qdeclarativegeomap.cpp.

References QSGNode::appendChildNode(), QQuickItem::boundingRect(), QSGNode::childCount(), QSGNode::firstChild(), QSGRectangleNode::setColor(), QSGRectangleNode::setRect(), QGeoMap::updateSceneGraph(), and QQuickItem::window().

+ Here is the call graph for this function:

◆ visibleArea()

QRectF QDeclarativeGeoMap::visibleArea ( ) const

\qmlproperty rect QtLocation::Map::visibleArea

This property holds the visible area inside the Map QML element. It is a rect whose coordinates are relative to the Map element. Its size will be clamped to the size of the Map element. A null visibleArea means that the whole Map is visible.

Since
5.12

Definition at line 1191 of file qdeclarativegeomap.cpp.

References QGeoMap::visibleArea().

+ Here is the call graph for this function:

◆ visibleAreaChanged

void QDeclarativeGeoMap::visibleAreaChanged ( )
signal

Referenced by initialize(), and setVisibleArea().

+ Here is the caller graph for this function:

◆ visibleRegion()

QGeoShape QDeclarativeGeoMap::visibleRegion ( ) const

Definition at line 1106 of file qdeclarativegeomap.cpp.

References QGeoMap::capabilities(), QGeoMap::geoProjection(), QQuickItem::height, QGeoProjection::itemPositionToCoordinate(), QGeoMap::SupportsVisibleRegion, QGeoMap::viewportHeight(), QGeoMap::viewportWidth(), QGeoMap::visibleRegion(), and QQuickItem::width.

+ Here is the call graph for this function:

◆ zoomLevel()

qreal QDeclarativeGeoMap::zoomLevel ( ) const

Definition at line 725 of file qdeclarativegeomap.cpp.

References QGeoMap::cameraData(), and QGeoCameraData::zoomLevel().

+ Here is the call graph for this function:

◆ zoomLevelChanged

void QDeclarativeGeoMap::zoomLevelChanged ( qreal zoomLevel)
signal

Referenced by setZoomLevel().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ QDeclarativeGeoMapCopyrightNotice

friend class QDeclarativeGeoMapCopyrightNotice
friend

Definition at line 274 of file qdeclarativegeomap_p.h.

◆ QDeclarativeGeoMapItem

friend class QDeclarativeGeoMapItem
friend

Definition at line 272 of file qdeclarativegeomap_p.h.

◆ QDeclarativeGeoMapItemView

friend class QDeclarativeGeoMapItemView
friend

Definition at line 273 of file qdeclarativegeomap_p.h.

Member Data Documentation

◆ margins

QVariant QDeclarativeGeoMap::margins

Definition at line 155 of file qdeclarativegeomap_p.h.

Referenced by fitViewportToGeoShape().

Property Documentation

◆ activeMapType

QGeoMapType QDeclarativeGeoMap::activeMapType
readwrite

Definition at line 61 of file qdeclarativegeomap_p.h.

◆ bearing

qreal QDeclarativeGeoMap::bearing
readwrite

Definition at line 55 of file qdeclarativegeomap_p.h.

Referenced by initialize(), setBearing(), and setBearing().

◆ center

QGeoCoordinate QDeclarativeGeoMap::center
readwrite

Definition at line 63 of file qdeclarativegeomap_p.h.

Referenced by initialize(), setBearing(), and setCenter().

◆ color

QColor QDeclarativeGeoMap::color
readwrite

Definition at line 69 of file qdeclarativegeomap_p.h.

Referenced by setColor().

◆ copyrightsVisible

bool QDeclarativeGeoMap::copyrightsVisible
readwrite

Definition at line 68 of file qdeclarativegeomap_p.h.

◆ error

QGeoServiceProvider::Error QDeclarativeGeoMap::error
read

Definition at line 65 of file qdeclarativegeomap_p.h.

Referenced by setError().

◆ errorString

QString QDeclarativeGeoMap::errorString
read

Definition at line 66 of file qdeclarativegeomap_p.h.

Referenced by setError().

◆ fieldOfView

qreal QDeclarativeGeoMap::fieldOfView
readwrite

◆ mapItems

QList< QObject * > QDeclarativeGeoMap::mapItems
read

\qmlproperty list<MapItem> QtLocation::Map::mapItems

Returns the list of all map items in no particular order. These items include items that were declared statically as part of the type declaration, as well as dynamical items (\l addMapItem, \l MapItemView).

See also
addMapItem, removeMapItem, clearMapItems

Definition at line 64 of file qdeclarativegeomap_p.h.

Referenced by ~QDeclarativeGeoMap().

◆ mapReady

bool QDeclarativeGeoMap::mapReady
read

Definition at line 70 of file qdeclarativegeomap_p.h.

◆ maximumFieldOfView

qreal QDeclarativeGeoMap::maximumFieldOfView
readwrite

Definition at line 59 of file qdeclarativegeomap_p.h.

Referenced by setFieldOfView(), and setMaximumFieldOfView().

◆ maximumTilt

qreal QDeclarativeGeoMap::maximumTilt
readwrite

Definition at line 53 of file qdeclarativegeomap_p.h.

Referenced by setMaximumTilt(), and setTilt().

◆ maximumZoomLevel

qreal QDeclarativeGeoMap::maximumZoomLevel
readwrite

Definition at line 48 of file qdeclarativegeomap_p.h.

Referenced by setMaximumZoomLevel(), and setZoomLevel().

◆ minimumFieldOfView

qreal QDeclarativeGeoMap::minimumFieldOfView
readwrite

Definition at line 58 of file qdeclarativegeomap_p.h.

Referenced by setFieldOfView(), and setMinimumFieldOfView().

◆ minimumTilt

qreal QDeclarativeGeoMap::minimumTilt
readwrite

Definition at line 52 of file qdeclarativegeomap_p.h.

Referenced by setMinimumTilt(), and setTilt().

◆ minimumZoomLevel

qreal QDeclarativeGeoMap::minimumZoomLevel
readwrite

Definition at line 47 of file qdeclarativegeomap_p.h.

Referenced by setMinimumZoomLevel().

◆ plugin

QDeclarativeGeoServiceProvider * QDeclarativeGeoMap::plugin
readwrite

Definition at line 46 of file qdeclarativegeomap_p.h.

Referenced by setPlugin().

◆ supportedMapTypes

QList< QGeoMapType > QDeclarativeGeoMap::supportedMapTypes
read

\qmlproperty list<mapType> QtLocation::Map::supportedMapTypes

This read-only property holds the set of \l{mapType}{map types} supported by this map.

See also
activeMapType

Definition at line 62 of file qdeclarativegeomap_p.h.

◆ tilt

qreal QDeclarativeGeoMap::tilt
readwrite

Definition at line 51 of file qdeclarativegeomap_p.h.

Referenced by initialize(), setMaximumTilt(), setMinimumTilt(), and setTilt().

◆ visibleArea

QRectF QDeclarativeGeoMap::visibleArea
readwrite

Definition at line 71 of file qdeclarativegeomap_p.h.

Referenced by setVisibleArea().

◆ visibleRegion

QGeoShape QDeclarativeGeoMap::visibleRegion
readwrite

Definition at line 67 of file qdeclarativegeomap_p.h.

Referenced by setVisibleRegion().

◆ zoomLevel


The documentation for this class was generated from the following files: