Loading a model with .webp texture causes map to be unusable
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
When loading a model into Mapbox that uses a .webp texture causes the map to throw an error.
Error which gets thrown is this

I have an example of it happening here:
https://jsbin.com/geziwamepu/1/edit?html,console,output
In the example are two different models, one with PNG texture and one with a WEBP texture. I can't attach examples of the models which don't work but the example above has some on.
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 with the linked JSBin reproduction and compare the PNG-textured and WEBP-textured model cases. Trace the loading path from the failing example to identify where the WEBP case breaks, then verify that both models load without the reported error and the map remains usable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- computer-graphics, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100