mapbox / mapbox/leaflet-image

No value provided for variable {TileMatrix}

Open
#142 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
380
Forks
140
PR merge metrics
No merged PRs in 30d

Description

With leaflet

"leaflet": "^1.9.3",
"leaflet-image": "^0.4.0",

in my package.json (the values I get from `npm install leaflet-image`), and the following code:

var map = L.map("towMap", {
preferCanvas: true,
layers: [
baseLayer,
towTrack,
sampleLayer
] })
leafletImage(map, function (err, canvas) {
...

I get the error
```
No value provided for variable {TileMatrix}
```
baseLayer is from `L.GIBSLayer` (gibs-leaflet package), so perhaps is not CORS-compliant as required (I have no idea how to test that), but if that's the case the error message could be more obvious.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the leafletImage(map, callback) entry point and reproduce the error using leaflet 1.9.3, leaflet-image 0.4.0, and an L.GIBSLayer base layer. Trace where the {TileMatrix} value is required and determine whether the layer or CORS behavior causes the failure. Done means the cause is confirmed and the resulting error is made more informative, if appropriate.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.