Class StadiaSource
Defined in File stadia_source.h
Inheritance Relationships
Base Type
public tile_map::TileSource(Class TileSource)
Class Documentation
-
class StadiaSource : public tile_map::TileSource
Public Functions
-
explicit StadiaSource(const QString &name, const QString &base_url, bool is_custom, int32_t max_zoom)
-
virtual size_t GenerateTileHash(int32_t level, int64_t x, int64_t y) override
Generates a hash that uniquely identifies the tile from this source at the specified level and coordinates.
- Parameters:
level – The zoom level
x – The X coordinate
y – The Y coordinate
- Returns:
A hash identifying the tile
-
virtual QString GenerateTileUrl(int32_t level, int64_t x, int64_t y) override
Generates an HTTP or HTTPS URL that refers to a map tile from this source at the given level and x and y coordinates.
- Parameters:
level – The zoom level
x – The x coordinate
y – The y coordinate
- Returns:
A URL referring to the map tile
-
virtual QString GetType() const override
Returns a string identifying the type of map source (“wmts”, “bing”, etc.)
- Returns:
-
QString GetApiKey() const
-
void SetApiKey(const QString &api_key)
Public Static Attributes
-
static const QString STADIA_TYPE
-
explicit StadiaSource(const QString &name, const QString &base_url, bool is_custom, int32_t max_zoom)