mapbox / mapbox/mapbox-gl-js

WebGL warning on transitioning from globe to mercator when showTileBoundaries is set to true.

Open
#11,539 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3d :triangular_ruler: bug :lady_beetle:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

browser: Google Chrome Version 97.0.4692.99 (Official Build) (64-bit)

Steps to Trigger Behavior
  1. Navigate to http://localhost:9966/debug#5.99/41.417/-106.375
  2. From console enable globe projection and set showTileBoundaries to true:
    i. map.setProjection('globe');
    ii. map.showTileBoundaries = true;
  3. Zoom in slightly and observe the WebGL warning from console.
Expected Behavior

No such warning should be emitted.

Actual Behavior

The following warning is emitted:
GL_INVALID_OPERATION: Must have element array buffer bound.

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

Reproduce the warning from the debug URL in Chrome by switching to globe projection, enabling showTileBoundaries, and zooming slightly. Trace the WebGL rendering path used during the globe-to-Mercator transition and tile-boundary display. Done means the same steps no longer emit GL_INVALID_OPERATION: Must have element array buffer bound.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
computer-graphics, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.