Qt Mobility Reference Documentation

QGeoTiledMapRequest Class Reference

The QGeoTiledMapRequest class represents a request for a map tile from a tile-based mapping service. More...

 #include <QGeoTiledMapRequest>

Public Functions

QGeoTiledMapRequest ()
QGeoTiledMapRequest ( QGraphicsGeoMap::ConnectivityMode connectivityMode, QGraphicsGeoMap::MapType mapType, qreal zoomLevel, int row, int column, const QRect & tileRect )
QGeoTiledMapRequest ( const QGeoTiledMapRequest & other )
~QGeoTiledMapRequest ()
int column () const
QGraphicsGeoMap::ConnectivityMode connectivityMode () const
QGraphicsGeoMap::MapType mapType () const
int row () const
QRect tileRect () const
int zoomLevel () const
QGeoTiledMapRequest & operator= ( const QGeoTiledMapRequest & other )
bool operator== ( const QGeoTiledMapRequest & other ) const

Detailed Description

The QGeoTiledMapRequest class represents a request for a map tile from a tile-based mapping service.

The tile is specified by a map type, a zoom level, a row and a column.

At a zoom level of z the world is represented as a 2^z by 2^z grid of tiles, and the row and column are relative to the grid of tiles for the zoom level of the request.


Member Function Documentation

QGeoTiledMapRequest::QGeoTiledMapRequest ()

Constructs a new tiled map request.

QGeoTiledMapRequest::QGeoTiledMapRequest ( QGraphicsGeoMap::ConnectivityMode connectivityMode, QGraphicsGeoMap::MapType mapType, qreal zoomLevel, int row, int column, const QRect & tileRect )

Constructs a new tiled map request.

At a zoom level of z the world is represented as a 2^z by 2^z grid of tiles.

This tiled map request represents a request for the tile at row row and column column at zoom level zoomLevel and type mapType.

The request will use connectivity mode connectivityMode when accessing the map data.

The rectangle that the tile occupies on the map at the maximum zoom level is also given as tileRect.

QGeoTiledMapRequest::QGeoTiledMapRequest ( const QGeoTiledMapRequest & other )

Constructs a tiled map request from the contents of other.

QGeoTiledMapRequest::~QGeoTiledMapRequest ()

Destroys this tiled map request.

int QGeoTiledMapRequest::column () const

Returns the column of the requested tile.

At a zoom level of z the world is represented as a 2^z by 2^z grid of tiles, and so the column will be between 0 and 2^z - 1.

QGraphicsGeoMap::ConnectivityMode QGeoTiledMapRequest::connectivityMode () const

Returns the connectivity mode of the tile request.

QGraphicsGeoMap::MapType QGeoTiledMapRequest::mapType () const

Returns the map type of the requested tile.

int QGeoTiledMapRequest::row () const

Returns the row of the requested tile.

At a zoom level of z the world is represented as a 2^z by 2^z grid of tiles, and so the row will be between 0 and 2^z - 1.

QRect QGeoTiledMapRequest::tileRect () const

Returns the rectangle that the tile covers on the map at the maximum zoon level.

At a zoom level of z the world is represented as a 2^z by 2^z grid of tiles. If m is the maximum zoom level and the tiles are t by t pixel squares, then the entire world could be viewed as a 2^m * t by 2^m * t pixel image.

The rectangle returned is specified relative to the pixel coordinates of the map at the maximum zoom level.

int QGeoTiledMapRequest::zoomLevel () const

Returns the zoom level of the requested tile.

The lower and upper bounds of the zoom level are set by the QGeoMappingManager that created this request.

QGeoTiledMapRequest & QGeoTiledMapRequest::operator= ( const QGeoTiledMapRequest & other )

Assigns other to this tiled map request and then returns a reference to this tiled map request.

bool QGeoTiledMapRequest::operator== ( const QGeoTiledMapRequest & other ) const

Returns with this tiled map request is equal to other.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.