MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QGeoMapOverlay Class Reference

The QGeoMapOverlay class is used to draw overlays on the map. More...

 #include <QGeoMapOverlay>

This class was introduced in Qt Mobility 1.1.

Public Functions

QGeoMapOverlay ()
virtual ~QGeoMapOverlay ()
virtual void paint ( QPainter * painter, const QStyleOptionGraphicsItem * option ) = 0

Protected Functions

QGeoMapData const * mapData () const

Detailed Description

The QGeoMapOverlay class is used to draw overlays on the map.

This allows for general drawing to occur in overlays above the map.

Member Function Documentation

QGeoMapOverlay::QGeoMapOverlay ()

Constructs a new map overlay object.

QGeoMapOverlay::~QGeoMapOverlay () [virtual]

Destroys this map overlay object.

QGeoMapData const * QGeoMapOverlay::mapData () const [protected]

Returns the QGeoMapData instance that this overlay is associated, or 0 if there is not such instance.

The QGeoMapData instance provides access to information such as the zoom level and viewport position as well as methods to convert screen positions to coordinates and vice-versa.

This function was introduced in Qt Mobility 1.1.

void QGeoMapOverlay::paint ( QPainter * painter, const QStyleOptionGraphicsItem * option ) [pure virtual]

Paints the overlay on painter, using the options option.

This function was introduced in Qt Mobility 1.1.