--- layout: api title: "v2.1.1 JavaScript Library: L.TileLayer" categories: api version: v2.1.1 permalink: /api/v2.1.1/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.