#include <wmts_source.h>
|
boost::hash< std::string > | hash_ |
|
Definition at line 40 of file wmts_source.h.
tile_map::WmtsSource::WmtsSource |
( |
const QString & |
name, |
|
|
const QString & |
base_url, |
|
|
bool |
is_custom, |
|
|
int32_t |
max_zoom |
|
) |
| |
|
explicit |
Creates a new tile source from a set of known parameters.
- Parameters
-
[in] | name | A user-friendly display name |
[in] | base_url | The base HTTP URL of the data source; e. g.: "http://tile.stamen.com/terrain/" |
[in] | is_custom | If this is a custom (i. e. not one of the default) tile source; custom sources are saved and loaded from our settings |
[in] | max_zoom | The maximum zoom level |
Definition at line 39 of file wmts_source.cpp.
size_t tile_map::WmtsSource::GenerateTileHash |
( |
int32_t |
level, |
|
|
int64_t |
x, |
|
|
int64_t |
y |
|
) |
| |
|
virtual |
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
Implements tile_map::TileSource.
Definition at line 56 of file wmts_source.cpp.
QString tile_map::WmtsSource::GenerateTileUrl |
( |
int32_t |
level, |
|
|
int64_t |
x, |
|
|
int64_t |
y |
|
) |
| |
|
virtual |
Given a zoom level and x and y coordinates appropriate for the tile source's projection, this will generate a URL that points to an image tile for that location.
This expects the URL to have three strings in it, "{level}", "{x}", and "{y}", which will be replaced with the passed values. See tile_map_plugin.cpp for example URLs.
- Parameters
-
[in] | level | The zoom level |
[in] | x | The X coordinate of the tile |
[in] | y | The Y coordinate of the tile |
- Returns
- A URL that references that tile
Implements tile_map::TileSource.
Definition at line 61 of file wmts_source.cpp.
QString tile_map::WmtsSource::GetType |
( |
| ) |
const |
|
virtual |
boost::hash<std::string> tile_map::WmtsSource::hash_ |
|
private |
const QString tile_map::WmtsSource::WMTS_TYPE = "wmts" |
|
static |
The documentation for this class was generated from the following files: