Class TileClient

Inheritance Relationships

Base Type

  • public QObject

Class Documentation

class TileClient : public QObject

Download slippy tiles from a Tile server.

Public Functions

TileClient()
std::future<QImage> request(const TileId &tile_id)

Load a specific tile.

Since QNetworkDiskCache is used, tiles will be loaded from the file system if they have been cached. Otherwise they get downloaded.

If server url contains “file://”, local filesystem will be used.

std::future<QImage> request_local(const TileId &tile_id)

Load a specific tile from filesystem.

std::future<QImage> request_remote(const TileId &tile_id)

Load a specific tile from internet.

Since QNetworkDiskCache is used, tiles will be loaded from the file system if they have been cached. Otherwise they get downloaded.