mapbox / mapbox/mapbox-gl-js

Mapbox Map Display and Style not implemented correctly

Open
#13,030 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

**mapbox-gl-js version**: 2.15.0

**browser**: Google Chrome

### Steps to Trigger Behavior

1. If the map does load, but is placed in a separate div that is hidden and shown when accessed by JavaScript display and hide functionality, then the map size is cropped, and the Mapbox logo is smaller than the normal size of the logo.
2.
3.

### Link to Demonstration

https://dinwun450.github.io/Transcyclopedia/sanfrancisco/muni/muni.html#
(Go to Interactive Map)

### Expected Behavior
![Screenshot 2024-01-03 110504](https://github.com/mapbox/mapbox-gl-js/assets/42019518/375d88fe-e030-48a1-804f-4d06e9544595)

### Actual Behavior
![Screenshot 2024-01-03 105751](https://github.com/mapbox/mapbox-gl-js/assets/42019518/c912fcd4-4a29-4d77-a420-ce09c501ecc9)

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 by reproducing the behavior in the linked Transcyclopedia demonstration using Chrome and mapbox-gl-js 2.15.0, toggling the map's container with JavaScript display and hide behavior. Compare the cropped map and smaller Mapbox logo with the expected screenshot; done means the map and logo render at their normal size after the container is shown.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.