Skip to content

GeolocateControl marker shrinks when tilting and zooming map #5432

@tricaric

Description

@tricaric

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions