Skip to content

GMSMapView Rendering Lag During Frequent Height Changes #527

@abbasnaqvi200

Description

@abbasnaqvi200

When frequently changing the height of a GMSMapView (such as when adjusting its height dynamically via constraints), there is a noticeable lag where the map view does not render instantly. This results in a white space appearing temporarily at the top and/or bottom of the map view while it is resizing. The white space disappears after a brief delay (a few milliseconds), but the user experience is affected by the rendering lag.

Steps to Reproduce:
Add a GMSMapView to a view controller with dynamic height constraints (e.g., height change on drag or other gesture).
Frequently adjust the height of the GMSMapView (e.g., during dragging of another view or while using an interactive control).
Observe that the map view does not render instantly during height changes, causing white space to briefly appear around the map.

Expected Behavior:
The GMSMapView should update its rendering seamlessly and instantly as its height changes, without displaying any white space or rendering lag.

Actual Behavior:
When the height of the GMSMapView is changed rapidly, the map tiles do not re-render instantly. A white space appears at the top and/or bottom of the map for a few milliseconds before the map tiles are adjusted and the white space disappears.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions