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.