#include <osmmapadapter.h>
Public Member Functions | |
virtual QPoint | coordinateToDisplay (const QPointF &) const |
translates a world coordinate to display coordinate | |
int | currentZoom () const |
returns the current zoom | |
virtual QPointF | displayToCoordinate (const QPoint &) const |
translates display coordinate to world coordinate | |
QString | host () const |
returns the host of this MapAdapter | |
int | maxZoom () const |
returns the max zoom value | |
int | minZoom () const |
returns the min zoom value | |
OSMMapAdapter () | |
constructor | |
int | tilesize () const |
returns the size of the tiles |
This is a conveniece class, which extends and configures a TileMapAdapter
OSMMapAdapter | ( | ) |
constructor
This construct a OpenStreetmap Adapter
QPoint coordinateToDisplay | ( | const QPointF & | coordinate | ) | const [virtual, inherited] |
translates a world coordinate to display coordinate
The calculations also needs the current zoom. The current zoom is managed by the MapAdapter, so this is no problem. To divide model from view the current zoom should be moved to the layers.
coordinate | the world coordinate |
Implements MapAdapter.
Reimplemented in GoogleSatMapAdapter.
int currentZoom | ( | ) | const [inherited] |
returns the current zoom
QPointF displayToCoordinate | ( | const QPoint & | point | ) | const [virtual, inherited] |
translates display coordinate to world coordinate
The calculations also needs the current zoom. The current zoom is managed by the MapAdapter, so this is no problem. To divide model from view the current zoom should be moved to the layers.
point | the display coordinate |
Implements MapAdapter.
Reimplemented in GoogleSatMapAdapter.
QString host | ( | ) | const [inherited] |
int maxZoom | ( | ) | const [inherited] |
returns the max zoom value
int minZoom | ( | ) | const [inherited] |
returns the min zoom value
int tilesize | ( | ) | const [inherited] |
returns the size of the tiles