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

<p>Used to create Canvas-based tile layers where tiles get drawn on the browser side. Extends <a href="/mapbox.js/api/v2.1.4/l-tilelayer">TileLayer</a>.</p>

<h3>Usage example</h3>

<pre><code class="javascript">var canvasTiles = L.tileLayer.canvas();

canvasTiles.drawTile = function(canvas, tilePoint, z