-
Notifications
You must be signed in to change notification settings - Fork 160
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
CircleLayer.circleTranslate with circleTranslateAnchor === .viewport is not working as expected #2275
Labels
bug 🪲
Something is broken!
Comments
zo0m
changed the title
CircleLayer.circleTranslateAnchor is not working as expected
CircleLayer.circleTranslate with circleTranslateAnchor === .viewport is not working as expected
Dec 30, 2024
Mapbox 6.3.0 works fine. Demo: Code:
|
https://jsfiddle.net/9kohupe0/6/ Mapbox GL has the same bug.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Observed behavior and steps to reproduce
circleTranslate
withcircleTranslateAnchor === .viewport
is not working as expected.I expected (and it worked on 6.3.0) distance between 2 points the same on any zoom level
But it looks like circleTranslate ignores
circleTranslateAnchor
, because point distance is different on different zoom levelsExpected behavior
circleTranslate should not be dependant on zoom level if
circleTranslateAnchor === .viewport
Notes / preliminary analysis
Maybe circleTranslateAnchor is ignored
Additional links and references
Demo of my example (code below):
https://www.loom.com/share/4db96bcaacfd4ed69cc271fe5bc7a2ee
Demo of my working app, where I'm dragging points:
https://www.loom.com/share/a9ec12fda2b547c2bca889d9cb676144
The text was updated successfully, but these errors were encountered: