mapbox / mapbox/mapbox-gl-js

Icons appear blurred/pixelated in Chrome + Edge with `icon-size` > 1

Open
#11,976 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug :lady_beetle: environment-specific :desktop_computer:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

mapbox-gl-js version: v2.9.0-beta.2

Chromium-based browsers appear to be using lower resolution icons.

Steps to Trigger Behavior

Reproducible in the release testing page with icon-size: 3.
Browsers are:
Chrome | Edge
Firefox | Safari
image

Link to Demonstration

https://codepen.io/snailbones/pen/MWQPdxo?editors=0010

cc @ansis

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 CodePen demonstration and the release testing page, reproducing the issue with icon-size: 3 in Chrome and Edge and comparing Firefox and Safari. Trace the icon rendering and resolution-selection path, then verify that icons render without blur or pixelation at the reported size across the affected browsers.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
computer-graphics, frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.