Skip to content

onStyleLoaded not called #2406

@ReefLM

Description

@ReefLM

Environment

  • Xcode version: 26.1.1
  • iOS version: 26.1
  • Devices affected:
  • Maps SDK Version: 11.19.0

Observed behavior and steps to reproduce

The map sometimes doesn't invoke the onStyleLoaded or onMapLoaded lifecycle callbacks.

Expected behavior

The map should always invoke the callbacks

Notes / preliminary analysis

This issue appears to occur when the view re-renders due to a state change moments after the map is initialised.
Attached is a minimal sample project that exhibits the issue.

Additional links and references

MapboxOnStyleLoadedNotCalled.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🪲Something is broken!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions