mapbox / mapbox-gl-js

Interactive, thoroughly customizable maps in the browser, powered by vector tiles and WebGL
https://docs.mapbox.com/mapbox-gl-js/
Other
11.04k stars 2.21k forks source link

Streets not shown on certain zoom levels (but street names are shown) #13228

Open snajdov opened 1 month ago

snajdov commented 1 month ago

I'm loading Mapbox GL JS in a Chrome Extension that I'm building. The loading succeeds and the map is loaded. However, I noticed that at certain zoom levels, some streets/roads are not shown, but their names are.

Assuming that I might be some restrictions within the Chrome Extension, I went to the example docs page. There, I was able to replicate the same issue. The same issue is present in both Chrome and Firefox.

Steps to reproduce

  1. Visit the page at: https://docs.mapbox.com/mapbox-gl-js/example/simple-map/
  2. Start zooming in to the city of Philadelphia.
  3. First, it shows the street names.
  4. Then, as you zoom in further, it starts showing the streets.

Expected behavior

As soon as the street name is shown, the street should be displayed.

Actual behavior

Street names are shown at higher zoom levels. Then, as you zoom in, the streets are displayed.

Demonstration

mapbox

Mapbox GL JS v3.5.1 Browsers: Chrome v126.0.6478.126, Firefox v128.0 OS: Linux Manjaro

stepankuzmin commented 1 month ago

Hi @snajdov,

Thanks for flagging this issue. Is it reproducible on other devices for you, or is it Linux-specific?

snajdov commented 1 month ago

I opened it on my Android phone (Android v14), and it looks OK there. I opened it on a Windows 11 VM, and it looks OK there, as well. It seems to be Linux-specific, or even Manjaro/Arch-specific.

I changed the style of my maps to mapbox://styles/mapbox/streets-v12 and it looks good there. For anyone facing the same problem, try mapbox://styles/mapbox/streets-v12 or any of the other styles found at: https://docs.mapbox.com/api/maps/styles/#classic-mapbox-styles

So, I'm OK running with that style. If you think this issue needs no more attention, feel free to close it.

stepankuzmin commented 1 month ago

It may be some Linux-specific ANGLE issue. I will keep this open so we can review it later.

Dylansc22 commented 3 weeks ago

It does not work on: Arch Linux kernel: 6.10.4 Firefox 129

also if useful, from about:support on firefox:

WebGL 1 Driver Version: 4.6 (Compatibility Profile) Mesa 24.1.3
WebGL 2 Driver Version: 4.6 (Core Profile) Mesa 24.1.3

It does work on: Ubuntu 22.04 using chrome.