No value provided for variable {TileMatrix}
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- frontend
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.
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.
- Dominant language
- JavaScript
- Stars
- 380
- Forks
- 140
- PR merge metrics
- No merged PRs in 30d
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.
More from mapbox/leaflet-image
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
mapbox/leaflet-image#145 ·
-
ERR! code E404 Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
mapbox/leaflet-image#143 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
mapbox/leaflet-image#141 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
mapbox/leaflet-image#140 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
mapbox/leaflet-image#139 · 2 comments ·
All issues in mapbox/leaflet-image
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·