Skip to content

[Bug] getCenter() seems broken in Chrome on MacOs since 8.0 update #2546

@scott-cornwell

Description

@scott-cornwell

Description

Previously we were using 7.1.x and map.getCenter() was working fine, but since we moved to 8.0.4 we have at least one person for whom getCenter() always returns the initial map position center, not the updated position after panning, etc...

Not 100% sure it's a Mac issue but the exact same code/branch still works fine on Ubuntu and they're both on Chrome so not sure what else could be the cause.

Expected Behavior

No response

Steps to Reproduce

  • Open map app on Chrome on MacOs
  • call map.getCenter()
  • pan camera somewhere else
  • call map.getCenter() again
  • same value is returned for getCenter both times

Environment

  • Framework version: [email protected]
  • Map library: I'm not sure, I did not set up this project, all I see is @mapbox/[email protected]
  • Browser: Chrome 136
  • OS: MacOS (newer, not sure exact version)

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions