Render Leaflet's tiles as canvas elements.
npm install tilelayer-canvas elements.![]()
elements, but by drawing them on a . Just take a look.

npm install tilelayer-canvas
`
or
`
yarn add tilelayer-canvas
`
or just copy index.min.js from this repository and include it using a Then in your project use
L.tileLayer.canvas instead of L.tileLayer. That's it! See an example.Options
Name | Required | Default value | Description
---- | -------- | ------------- | -----------
timeout | No | undefined | Zoom debounce time.
doubleSize | No | undefined` | Set to true if tiles are 2x.