# Raster Tile Layers

{% hint style="info" %}
A raster tile service is a web service that points to image tiles used in web maps, normally 256x256 pixel PNG or JPEG images stored in a Z/X/Y format. For example: [https://storage.googleapis.com/moabi-raster-tiles/LC81290522017025LGN00/{z}/{x}/{y}.png](https://storage.googleapis.com/moabi-raster-tiles/LC81290522017025LGN00/%7Bz%7D/%7Bx%7D/%7By%7D.png) is the link to a tiles for a Landsat 8 scene used in this layer in Map for Environment <https://mapforenvironment.org/layer/info/640/#10.22/11.853/99.5299>
{% endhint %}

{% hint style="warning" %}
Before you start you must have a [MapHubs account](https://help.maphubs.com/getting-started/signup-for-a-maphubs-account), and have a [group](https://help.maphubs.com/getting-started/groups) where you want to create the new layer
{% endhint %}

## Create a Layer

Create a new layer by going to the Explore -> Layers page and clicking the  + button in the bottom right. Alternative you can click the Add a Layer button from the page of a group, and some MapHubs portals will have a Create a Layer shortcut on the landing page.

Choose the *Raster Tiles* option

![](https://1877297257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L97P61aNiSmDn1953mp%2F-LMxxmLsIcK4WSjXXBDl%2F-LMyCMhXHWqU2SNTNKxg%2Fimage.png?alt=media\&token=2fdd1715-c50e-4a69-b7e9-e2cf541c7bd7)

Enter the tile URL for the raster tile service, pay special attention to the template portion  of the URL which must have the `/{z}/{x}/{y}` coordinates.

![](https://1877297257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L97P61aNiSmDn1953mp%2F-LMxxmLsIcK4WSjXXBDl%2F-LMyD_QU1loJ6kTe07_d%2Fimage.png?alt=media\&token=b6d85e8d-1354-4532-8881-9afd7be76991)

{% hint style="info" %}
If you know the min and max zoom levels you can optionally configure them here. Setting the max zoom level (if known) will prevent a raster layer from disappearing in the map when you zoom in past its maximum
{% endhint %}

Next give the layer a name, description, source, and license. Choose the group where you want to save the layer.&#x20;

![](https://1877297257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L97P61aNiSmDn1953mp%2F-LMxxmLsIcK4WSjXXBDl%2F-LMyEWqfRYjul8_4CE-s%2Fimage.png?alt=media\&token=1738a57a-f62b-4e21-a128-a560920a56fb)

Finally zoom the preview map to the location of the raster data and optionally choose an opacity value for the layer if you want it to be transparent

![](https://1877297257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L97P61aNiSmDn1953mp%2F-LMxxmLsIcK4WSjXXBDl%2F-LMyEiLmhW_ARHRtyiQD%2Fimage.png?alt=media\&token=0d448b61-8953-4919-8a01-35660b183c4b)
