mapbox-gl-js
mapbox-gl-js copied to clipboard
Mapbox marker does not scale with GeoJSON symbols during pitch and bearing adjustments
mapbox-gl-js version: 3.3.0
browser: (Include the browser where you encountered the bug, e.g., Chrome 104.0.5112.101) Chrome
Steps to Trigger Behavior
- Load the map with GeoJSON circle symbols.
- Click on a circle to add a Mapbox marker styled as a circle directly on top of the clicked GeoJSON circle.
- Change the map's pitch and bearing.
Link to Demonstration
https://jsbin.com/(Paste your jsbin link here after creating the demo)
Expected Behavior
The Mapbox marker, styled as a circle, should resize proportionally with the GeoJSON circles when the map's pitch and bearing are changed.
Actual Behavior
The Mapbox marker does not resize in proportion to the GeoJSON circles during pitch and bearing changes, causing the marker to either overlap inappropriately or appear smaller/larger than the underlying GeoJSON symbol.