QMapControl
0.9.7.4
|
MapAdapter for OpenStreetMap. More...
#include <osmmapadapter.h>
Public Member Functions | |
virtual void | changeHostAddress (const QString qHost, const QString qServerPath=QString()) |
change or update server host address post init More... | |
virtual QPoint | coordinateToDisplay (const QPointF &) const |
translates a world coordinate to display coordinate More... | |
int | currentZoom () const |
returns the current zoom More... | |
virtual QPointF | displayToCoordinate (const QPoint &) const |
translates display coordinate to world coordinate More... | |
QString | host () const |
returns the host of this MapAdapter More... | |
int | maxZoom () const |
returns the max zoom value More... | |
int | minZoom () const |
returns the min zoom value More... | |
OSMMapAdapter () | |
constructor More... | |
virtual QString | serverPath () const |
returns the server path part of this MapAdapter More... | |
int | tilesize () const |
returns the size of the tiles More... | |
MapAdapter for OpenStreetMap.
This is a conveniece class, which extends and configures a TileMapAdapter
OSMMapAdapter | ( | ) |
constructor
This construct a OpenStreetmap Adapter
|
virtualinherited |
change or update server host address post init
host | the host address |
serverPath | the server path |
Reimplemented in WMSMapAdapter.
Referenced by WMSMapAdapter::changeHostAddress().
|
virtualinherited |
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.
|
inherited |
returns the current zoom
|
virtualinherited |
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.
|
inherited |
returns the host of this MapAdapter
|
inherited |
returns the max zoom value
|
inherited |
returns the min zoom value
|
virtualinherited |
returns the server path part of this MapAdapter
Reimplemented in WMSMapAdapter.
Referenced by WMSMapAdapter::serverPath().
|
inherited |
returns the size of the tiles
Referenced by WMSMapAdapter::changeHostAddress().