The QGeoMappingManager class provides support for displaying and interacting with maps. More...
#include <QGeoMappingManager>
Inherits: QObject.
This class was introduced in Qt Mobility 1.1.
~QGeoMappingManager () | |
QGeoMapData * | createMapData () |
QLocale | locale () const |
QString | managerName () const |
int | managerVersion () const |
qreal | maximumTilt () const |
qreal | maximumZoomLevel () const |
qreal | minimumTilt () const |
qreal | minimumZoomLevel () const |
void | setLocale ( const QLocale & locale ) |
QList<QGraphicsGeoMap::ConnectivityMode> | supportedConnectivityModes () const |
QList<QGraphicsGeoMap::MapType> | supportedMapTypes () const |
bool | supportsBearing () const |
bool | supportsCustomMapObjects () const |
bool | supportsTilting () const |
The QGeoMappingManager class provides support for displaying and interacting with maps.
A QGeoMappingManager instance can create QGeoMapData instances with createMapData(). The QGeoMapData instances can be used to contain and manage information concerning what a particular QGraphicsGeoMap is viewing.
The functions in this class will typically not be used by clients of this API, as the most common uses will only need to obtain a QGeoMappingManager instance and associate it with a QGraphicsGeoMap instance:
QGeoServiceProvider serviceProvider("nokia"); QGeoMappingManager *manager = serviceProvider.mappingManager(); QGraphicsGeoMap *geoMap = new QGraphicsGeoMap(manager);
This could have been simplified by having the plugin return a QGraphicsGeoMap instance instead, but this approach allows users to subclass QGraphicsGeoMap in order to override the standard event handlers and implement custom map behaviours.
Destroys this mapping manager.
Returns a new QGeoMapData instance which will be managed by this manager.
This function was introduced in Qt Mobility 1.1.
Returns the locale used to hint to this mapping manager about what language to use for map labels.
This function was introduced in Qt Mobility 1.1.
See also setLocale().
Returns the name of the engine which implements the behaviour of this mapping manager.
The combination of managerName() and managerVersion() should be unique amongst the plugin implementations.
This function was introduced in Qt Mobility 1.1.
Returns the version of the engine which implements the behaviour of this mapping manager.
The combination of managerName() and managerVersion() should be unique amongst the plugin implementations.
This function was introduced in Qt Mobility 1.1.
Returns maximum tilt supported by this manager.
Value in degrees where 0 is equivalent to 90 degrees between view and earth's surface i.e. looking straight down to earth.
This function was introduced in Qt Mobility 1.2.
Returns the maximum zoom level supported by this manager.
Larger values of the zoom level correspond to more detailed views of the map.
This function was introduced in Qt Mobility 1.1.
Returns minimum tilt supported by this manager.
Value in degrees where 0 is equivalent to 90 degrees between view and earth's surface i.e. looking straight down to earth.
This function was introduced in Qt Mobility 1.2.
Returns the minimum zoom level supported by this manager.
Larger values of the zoom level correspond to more detailed views of the map.
This function was introduced in Qt Mobility 1.1.
Sets the locale to be used by the this manager to locale.
If this mapping manager supports returning map labels in different languages, they will be returned in the language of locale.
The locale used defaults to the system locale if this is not set.
This function was introduced in Qt Mobility 1.1.
See also locale().
Returns a list of the connectivity modes supported by this manager.
This function was introduced in Qt Mobility 1.1.
Returns a list of the map types supported by this manager.
This function was introduced in Qt Mobility 1.1.
Return whether bearing is supported by this manager.
This function was introduced in Qt Mobility 1.2.
Returns whether custom map objects are supported by this engine.
Custom map objects are map objects based on QGraphicsItem instances, which are hard to support in cases where the map rendering is not being performed by the Qt Graphics View framwork.
This function was introduced in Qt Mobility 1.2.
Return whether tilting is supported by this manager.
This function was introduced in Qt Mobility 1.2.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.