#include <MAP/CloudMadeMapSource.h>
Inheritance diagram for MAP::CloudMadeMapSource:
Public Member Functions | |
CloudMadeMapSource (int style) | |
MapSourceKind | getSourceKind () const |
MAExtent | getTileSize () const |
int | getMagnificationMin () const |
int | getMagnificationMax () const |
int | getStyle () const |
void | setStyle (int style) |
void | getTileUrl (char *buffer, MapTileCoordinate tileXY) |
MapTileCoordinate | lonLatToTile (LonLat lonlat, int magnification) |
PixelCoordinate | lonLatToPixel (LonLat lonlat, int magnification) |
LonLat | tileCenterToLonLat (const int tileSize, const MapTileCoordinate &tile, const double offsetX, const double offsetY) |
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) |
Static Public Attributes | |
static const char * | ApiKey |
|
|
|
CloudMade supports a number of different rendering variations for maps. MAP currently supports type 1 and 7. Implements MAP::MapSource. |
|
Returns tile size in pixels. Implements MAP::MapSource. |
|
Returns minimum magnification Implements MAP::MapSource. |
|
Returns maximum magnification Implements MAP::MapSource. |
|
Returns style setting for the CloudMade map source. |
|
Sets style setting for the CloudMade map source. Refer to CloudMade documentation for more information. |
|
Creates a URL for the specified tile coordinate. Implements MAP::MapSource. |
|
Converts a LonLat coordinate to a tile coordinate. Implements MAP::MapSource. |
|
Converts a LonLat coordinate to a global pixel coordinate. Implements MAP::MapSource. |
|
Convert tile center plus pixel offset to LonLat. Implements MAP::MapSource. |
|
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. |
|
API key for use in calls to CloudMade tile servers. See cloudmade.com for more details. |