Detailed Description
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.
Member Function Documentation
QGeoMappingManager::~QGeoMappingManager ()
Destroys this mapping manager.
QGeoMapData * QGeoMappingManager::createMapData ()
Returns a new QGeoMapData instance which will be managed by this manager.
QLocale QGeoMappingManager::locale () const
Returns the locale used to hint to this mapping manager about what language to use for map labels.
See also setLocale().
QString QGeoMappingManager::managerName () const
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.
int QGeoMappingManager::managerVersion () const
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.
qreal QGeoMappingManager::maximumZoomLevel () const
Returns the maximum zoom level supported by this manager.
Larger values of the zoom level correspond to more detailed views of the map.
qreal QGeoMappingManager::minimumZoomLevel () const
Returns the minimum zoom level supported by this manager.
Larger values of the zoom level correspond to more detailed views of the map.
void QGeoMappingManager::setLocale ( const QLocale & locale )
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.
See also locale().
Returns a list of the connectivity modes supported by this manager.
Returns a list of the map types supported by this manager.