#include <OsmTileDownloader.h>
|
void | downloaded (uint32_t zoomLevel, uint32_t x, uint32_t y, QImage image, QByteArray downloadedData) |
|
void | failed (uint32_t zoomLevel, uint32_t x, uint32_t y, bool zoomLevelOutOfRange) |
|
◆ OsmTileDownloader()
osmscout::OsmTileDownloader::OsmTileDownloader |
( |
QString |
diskCacheDir, |
|
|
const OnlineTileProvider & |
provider |
|
) |
| |
http://wiki.openstreetmap.org/wiki/Tile_usage_policy
- Valid User-Agent identifying application. Faking another app's User-Agent WILL get you blocked.
- If known, a valid HTTP Referer.
- DO NOT send no-cache headers. ("Cache-Control: no-cache", "Pragma: no-cache" etc.)
- Cache Tile downloads locally according to HTTP Expiry Header, alternatively a minimum of 7 days.
- Maximum of 2 download threads. (Unmodified web browsers' download thread limits are acceptable.)
◆ ~OsmTileDownloader()
osmscout::OsmTileDownloader::~OsmTileDownloader |
( |
| ) |
|
|
override |
◆ download
void osmscout::OsmTileDownloader::download |
( |
uint32_t |
zoomLevel, |
|
|
uint32_t |
x, |
|
|
uint32_t |
y |
|
) |
| |
|
slot |
◆ downloaded
void osmscout::OsmTileDownloader::downloaded |
( |
uint32_t |
zoomLevel, |
|
|
uint32_t |
x, |
|
|
uint32_t |
y, |
|
|
QImage |
image, |
|
|
QByteArray |
downloadedData |
|
) |
| |
|
signal |
◆ failed
void osmscout::OsmTileDownloader::failed |
( |
uint32_t |
zoomLevel, |
|
|
uint32_t |
x, |
|
|
uint32_t |
y, |
|
|
bool |
zoomLevelOutOfRange |
|
) |
| |
|
signal |
◆ onlineTileProviderChanged
void osmscout::OsmTileDownloader::onlineTileProviderChanged |
( |
const OnlineTileProvider & |
provider | ) |
|
|
slot |
The documentation for this class was generated from the following files: