URL Template
Supplies the bounding box of each tile to a WMS endpoint through a URL template.
| This provider overlaps with the Proxy provider and is available mostly for compatibility, you generally should use Proxy instead. |
| Only supports EPSG:4326 and EPSG:3857 |
Example
-
YAML
-
JSON
provider:
name: url template
template: https://example.com/?bbox=$xmin,$ymin,$xmax,$ymax&srs=$srs&width=$width&height=$height
srid: 3857
{
"provider": {
"name": "url template",
"template": "https://example.com/?bbox=$xmin,$ymin,$xmax,$ymax&srs=$srs&width=$width&height=$height",
"srid": 3857
}
}
Configuration
| Parameter | Description | Type | Required | Default |
|---|---|---|---|---|
|
A URL pointing to the tile server. Should contain placeholders |
string |
Yes |
None |
|
What to use for $width placeholder |
uint |
No |
256 |
|
What to use for $height placeholder |
uint |
No |
256 |
|
What projection the bounds should be in and what to use for $srs placeholder. Can only be 4326 or 3857 |
uint |
No |
4326 |