Unable to export .mbtiles layer
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 380
- Forks
- 140
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'm rendering a .mbtiles background as tile layer on my map using [this library](https://gitlab.com/IvanSanchez/Leaflet.TileLayer.MBTiles). I try to export my map using leaflet-image but I get a white background. I don't understand what is the problem since my layer supports CORS.
The only difference I spot when I inspect the rendered map, is that my tiles are blobs. Is it the problem ?
**OSM Layer (export is working) :**

**MBTILES Layer (export not rendering background):**

Thanks
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the export with the Leaflet.TileLayer.MBTiles layer used in the report, then compare it with the working OSM layer. Trace how leaflet-image handles tile images and blob-backed tiles; done means the MBTiles background appears in the exported image.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100