Proxy
The simplest provider, forwarding tile requests to another HTTP(s) endpoint such as a ZXY, TMS, WMTS, or WMS service.
TMS inverts the y coordinate compared to ZXY and WMTS formats, which is handled by the invertY parameter.
|
Example
-
YAML
-
JSON
provider:
name: proxy
url: https://tile.openstreetmap.org/{z}/{x}/{y}.png?key={env.key}&agent={ctx.User-Agent}
{
"provider": {
"name": "proxy",
"url": "https://tile.openstreetmap.org/{z}/{x}/{y}.png?key={env.key}&agent={ctx.User-Agent}"
}
}
Configuration
| Parameter | Description | Type | Required | Default |
|---|---|---|---|---|
|
A URL pointing to the tile server. Should contain placeholders surrounded by "{}" that are replaced on-the-fly |
string |
Yes |
None |
|
Changes Y tile numbering to be South-to-North instead of North-to-South. Only impacts Y/y placeholder |
bool |
No |
false |
|
What projection bounds should be in. Can only be 4326 or 3857 |
uint |
No |
4326 |
URL placeholders
| Placeholder | Description |
|---|---|
|
The X tile coordinate from the incoming request |
|
The Y tile coordinate either from the incoming request or the "flipped" equivalent if the |
|
The Z tile coordinate from the incoming request (aka "zoom") |
|
The "west" coordinate of the bounding box defined by the incoming tile coordinates. In the projection specified by |
|
The "east" coordinate of the bounding box defined by the incoming tile coordinates. In the projection specified by |
|
The "south" coordinate of the bounding box defined by the incoming tile coordinates. In the projection specified by |
|
The "north" coordinate of the bounding box defined by the incoming tile coordinates. In the projection specified by |
|
An environment variable whose name is XXX |
|
A context variable (typically an HTTP header) whose name is XXX |
|
If the layer includes a pattern with a placeholder of XXX, this is the replacement value from the used layer name |
|
Also see the |