mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

Mapbox marker does not scale with GeoJSON symbols during pitch and bearing adjustments

Open 3zzy opened this issue 1 month ago • 1 comments

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

  1. Load the map with GeoJSON circle symbols.
  2. Click on a circle to add a Mapbox marker styled as a circle directly on top of the clicked GeoJSON circle.
  3. 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. CleanShot 2024-05-18 at 8  47 26

3zzy avatar May 18 '24 04:05 3zzy