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

GeolocateControl marker shrinks when tilting and zooming map #5432

Open
tricaric opened this issue Jan 30, 2025 · 1 comment · May be fixed by #5437 or #5440
Open

GeolocateControl marker shrinks when tilting and zooming map #5432

tricaric opened this issue Jan 30, 2025 · 1 comment · May be fixed by #5437 or #5440
Labels
bug Something isn't working good first issue Good for newcomers PR is more than welcomed Extra attention is needed

Comments

@tricaric
Copy link

maplibre-gl-js version: 5.1.0

browser: Chrome/Firefox/Safari on Mac, and Safari/iOS

Steps to Trigger Behavior

  1. open the "Locate the user" example page: https://maplibre.org/maplibre-gl-js/docs/examples/locate-user/
  2. click on the "find my location" button on top-right of the map, and give permission to locate
  3. wait for the map to zoom on user position, and then zoom more to have the marker clearly visible
  4. alternate zooming and tilting of the map, and you will notice that the marker accuracy disk appears to shrink when you tilt the map, and then go back to its normal size when observing vertically the map

Of course here I am not talking about the expected change in apparent size due to the change of viewing angle, but to the sudden shrinking and growing of the marker after tilting and zooming, as it is clear when compared to the nearby buildings.

Link to Demonstration

Screen.Recording.2025-01-30.at.22.29.00.mov

Expected Behavior

The marker should not shrink when tilting the map, it should stay fixed at the size given by the accuracy of the position of the user.

Actual Behavior

The marker appears to shrink when tilting the map, and then appears to grow back to its normal size when observing the map vertically.

@HarelM
Copy link
Collaborator

HarelM commented Jan 30, 2025

Thanks for taking the time to report this issue.
Seems like the style of the accuracy circle should be set to viewport and not map.
PR is welcomed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers PR is more than welcomed Extra attention is needed
Projects
None yet
2 participants