# How to provide the url to the tileserver by means of a variable?

**URL:** <https://community.grafana.com/t/how-to-provide-the-url-to-the-tileserver-by-means-of-a-variable/85904>\
**Category:** Geomap Panel\
**Created:** [April 17, 2023, 2:28pm UTC](https://community.grafana.com/t/how-to-provide-the-url-to-the-tileserver-by-means-of-a-variable/85904 "2023-04-17T14:28:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevevr](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@stevevr](https://community.grafana.com/u/stevevr)\
**Post date:** [April 17, 2023, 2:28pm UTC](https://community.grafana.com/t/how-to-provide-the-url-to-the-tileserver-by-means-of-a-variable/85904/1 "2023-04-17T14:28:54Z")

</div>

I try to provide the URL to the XYZ Tile layer by means of a dashboard variable. The url directly in the field “URL template” works and provide the base layer as expected. When I try to replace it by the dashboard variable ${TileServer} , it is isn’t loaded. Already tried different ways like ${TileServer:text}, $TileServer but can’t get it working.

Can anyone put me on the right track?

![grafana1](https://us1.discourse-cdn.com/grafana/original/3X/3/f/3fd15481117c9bbb550b15849104eb02e84310ff.png)

 ![grafana2](https://us1.discourse-cdn.com/grafana/original/3X/7/c/7cc2fb37bdac1ab24d3e75e2598be0ba4d10b11e.png)

---

<div class="post-metadata">

**Author:** ![busrabuluttan](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@busrabuluttan](https://community.grafana.com/u/busrabuluttan)\
**Post date:** [July 23, 2024, 11:48am UTC](https://community.grafana.com/t/how-to-provide-the-url-to-the-tileserver-by-means-of-a-variable/85904/2 "2024-07-23T11:48:25Z")

</div>

were you able to solve it? i have a similar problem with xyz tile layers
