Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3zzy opened this issue May 18, 2024 · 1 comment

Comments

@3zzy
Copy link

3zzy commented May 18, 2024

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
Copy link
Author

3zzy commented May 18, 2024

Actually, I attempted a similar approach by adding a new layer stacked on top, using the exact same symbols. These symbols behaved similarly to the marker, so it appears the issue is not just with the marker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant