mapbox-gl-js
mapbox-gl-js copied to clipboard
Markers that are "behind" the map's starting centerpoint have incorrect initial positions when using globe projection
mapbox-gl-js version: 3.0.0
browser: Chrome 119.0.6045.199
Steps to Trigger Behavior
- Open JSFiddle demo
- Notice that the markers that are supposed to be initially invisible (due to being "behind" the map's starting centerpoint) are visible for a split second when the map loads, and are then hidden from view
Link to Demonstration
https://jsfiddle.net/philiplindberg/f90awpms/23/
https://github.com/mapbox/mapbox-gl-js/assets/1865904/24913342-fdb9-446e-a300-37e24d06fef3
Expected Behavior
I would expect all markers to appear in their correct positions, regardless of the projection used.
Actual Behavior
Markers that should initially be invisible (due to being "behind" the map's starting centerpoint) are actually visible for a split second before being correctly hidden.
Workaround
Using the mercator projection resolves the issue.