--- layout: api title: "v1.6.2 API: L.TileLayer" categories: api version: v1.6.2 permalink: /api/v1.6.2/l-tilelayer ---

TileLayer

Used to load and display tile layers on the map, implements ILayer interface.

Usage example

L.tileLayer('http://{s}.tile.cloudmade.com/{key}/{styleId}/256/{z}/{x}/{y}.png', {
	key: 'API-key',
	styleId: 997
}).addTo(map);

Creation

Factory Description
L.tileLayer( <String> urlTemplate, <TileLayer options> options? ) Instantiates a tile layer object given a URL template and optionally an options object.