Map 'load' event does not fire when centering the map outside of locations of partial tile sets (NAIP)
When centering the map in non-NAIP areas (e.g. outside of the contiguous United States) using the NAIP tileset, the map fails to trigger the load map event, even though the map and tiles are visible. Strangely, when interacting with the map, like panning or zooming, only then the load map event fires.
This issue gets resolved for the majority of cases if I specify a bounds on the tile set, but it won't work all cases since there are portions of the United States and Mexico that get included in the bounding box. See the following image.
mapbox-gl-js version: 3.3.0
browser: Firefox 125.0
Steps to Trigger Behavior
- Enter your access token on line 29
- Open browser console
- Notice 'loaded' does not get logged to the console
- Interact with the map (e.g. pan / zoom)
- Notice 'loaded' gets logged to the console
- Uncomment
boundsproperty on line 44/45 - Notice map loads properly at the same center point, as it is outside of the bounding box
Link to Demonstration
https://stackblitz.com/edit/mapbox-mapboxgl-tsh2bl?file=index.html
Expected Behavior
The map 'load' event should fire, and the logged text 'loaded' should show in the console.
Actual Behavior
The map 'load' event does not fire, and the logged next 'loaded' does not show even though the map and tiles are visible and interactable.
We are also experiencing this
Hi @spjy,
Good catch, we'll fix that in the upcoming release.
@stepankuzmin Any timeline on when this may be fixed?