mapbox / mapbox/mapbox-gl-js

Loading a model with .webp texture causes map to be unusable

Open
#13,423 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged feature :green_apple:
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
![Image](https://github.com/user-attachments/assets/972043ad-409b-456d-8f3e-fd46869a1ef0)

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.