---
layout: api
title: "v2.3.0 JavaScript Library: L.TileLayer"
categories: api
version: v2.3.0
permalink: /api/v2.3.0/l-tilelayer/
---
<h2 id="tilelayer">TileLayer</h2>

<p>Used to load and display tile layers on the map, implements <a href="/mapbox.js/api/v2.3.0/l-ilayer">ILayer</a> interface.</p>

<h3>Usage example</h3>

<pre><code class="javascript">L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png?{foo}', {foo: 'bar'}).addTo(map);</code></pre>

<h3>Creation</h3>

<table data-id='tilelayer'