The Map element displays a map. More...
The Map element can be used be used to display a map of the world. The bulk of the functionality is provided by a mapping plugin described by the Plugin element associated with the Map.
Various map objects can be added to the map. These map objects are specified in terms of coordinates and metres.
The Map element is part of the QtMobility.location 1.1 module.
center : Coordinate |
This property holds the coordinate which occupies the center of the mapping viewport.
The default value is an arbitrary valid coordinate.
This property holds the connectivity mode used to fetch the map data.
The mode can be one of:
The default value is determined by the plugin.
This property holds the type of map to display.
The type can be one of:
The default value is determined by the plugin.
maximumZoomLevel : qreal |
This property holds the maximum valid zoom level for the map.
minimumZoomLevel : qreal |
This property holds the minimum valid zoom level for the map.
defaultobjects : list<QGeoMapObject> |
This property holds the list of objects associated with this map.
The various objects that can be added include:
plugin : Plugin |
This property holds the plugin which provides the mapping functionality.
This is write-once property. Once the map has a plugin associated with it any attempted modifications of the plugin will be ignored.
size : QSizeF |
This property holds the size of the map viewport.
zoomLevel : qreal |
This property holds the zoom level for the map.
Larger values for the zoom level provide more detail.
The default value is 8.0.
Map::toCoordinate ( QPointF screenPosition ) |
Returns the coordinate which corresponds to the screen position screenPosition.
Returns an invalid coordinate if screenPosition is not within the current viewport.
Map::toScreenPosition ( Coordinate coordinate ) |
Returns the screen position which corresponds to the coordinate coordinate.
Returns an invalid QPointF if coordinate is not within the current viewport.