#include <MAP/MapSource.h>
Inheritance diagram for MAP::MapSource:
Public Member Functions | |
MapSource () | |
virtual | ~MapSource () |
virtual MapSourceKind | getSourceKind () const =0 |
virtual MAExtent | getTileSize () const =0 |
virtual int | getMagnificationMin () const =0 |
virtual int | getMagnificationMax () const =0 |
virtual void | getTileUrl (char *buffer, MapTileCoordinate tileXY)=0 |
virtual PixelCoordinate | lonLatToPixel (LonLat lonlat, int magnification)=0 |
virtual MapTileCoordinate | lonLatToTile (LonLat lonlat, int magnification)=0 |
virtual LonLat | tileCenterToLonLat (const int tileSize, const MapTileCoordinate &tile, const double offsetX, const double offsetY)=0 |
void | requestTile (const MapTileCoordinate tileXY, IMapSourceListener *listener, MapSourceClientData *clientData) |
void | clearQueue () |
void | finishedDownloading (Downloader *downloader, MAHandle data) |
void | downloadCancelled (Downloader *downloader) |
void | error (Downloader *downloader, int code) |
virtual void | notifyProgress (Downloader *downloader, int downloadedBytes, int totalBytes) |
virtual bool | outOfMemory (Downloader *downloader) |
|
|
|
|
|
Returns source kind Implemented in MAP::CloudMadeMapSource, MAP::GoogleMapSource, and MAP::OpenStreetMapSource. |
|
Returns tile size Implemented in MAP::CloudMadeMapSource, MAP::GoogleMapSource, and MAP::OpenStreetMapSource. |
|
Returns minimum magnification Implemented in MAP::CloudMadeMapSource, MAP::GoogleMapSource, and MAP::OpenStreetMapSource. |
|
Returns maximum magnification Implemented in MAP::CloudMadeMapSource, MAP::GoogleMapSource, and MAP::OpenStreetMapSource. |
|
Returns URL for retrieving a tile Implemented in MAP::CloudMadeMapSource, MAP::GoogleMapSource, and MAP::OpenStreetMapSource. |
|
Converts LonLat to a pixel coordinate, in a global pixel grid Implemented in MAP::CloudMadeMapSource, MAP::GoogleMapSource, and MAP::OpenStreetMapSource. |
|
Converts LonLat to tile coordinates for a tile that contains the lonlat point. Implemented in MAP::CloudMadeMapSource, MAP::GoogleMapSource, and MAP::OpenStreetMapSource. |
|
Convert tile center plus pixel offset to WGS84 lat/lon. Implemented in MAP::CloudMadeMapSource, MAP::GoogleMapSource, and MAP::OpenStreetMapSource. |
|
Returns all tiles required to cover specified rectangle around centerpoint. |
|
Clears any queued requests |
|
Called when all data has been downloaded.
Implements MAUtil::DownloadListener. |
|
Called if the download has been cancelled.
Implements MAUtil::DownloadListener. |
|
Called if an error occured.
Implements MAUtil::DownloadListener. |
|
Called when some data has been downloaded to notify about the progress of the download.
|
|
Called if the Downloader runs out of memory. Try to free some resource memory. If you managed to free some, return true to make the Downloader try again. If you can't free any more, return false to make the Downloader fail with CONNERR_DOWNLOADER_OOM. The default implementation does nothing and returns false. |