WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

[Bug]: Alternative route line partially missing when overlapping with main route #4804

@JarenFeng

Description

@JarenFeng

Mapbox Navigation SDK version

3.10.2

Steps to reproduce

Platform: iOS
SDK version: 3.10.2
Device: iPhone 14 Pro Max(iOS 18.6 / iOS 26)
Map style: mapbox://styles/mapbox/dark-v11

When displaying a long-distance route (hundreds of kilometers) that includes alternative routes, parts of the alternative route line are not rendered on the map.

The issue only occurs for alternative routes, not for the main route.

[REPRODUCE]

  1. Request a long-distance route (e.g. 600+ km) with alternatives enabled.

  2. Let the SDK render both the main and alternative routes automatically after DirectionsResponse.4.

  3. Observe the map view:- Some sections of the alternative route are missing.

    • Switching the same route to become the main route makes the missing parts appear correctly.
    • The missing segment typically corresponds to the portion that overlaps with the main route.
  4. Adjust the zoom level:

    • When zooming in, the missing segments gradually appear.
    • When zooming out, the same segments disappear again.

Expected behavior

All routes (main and alternatives) should be rendered completely and consistently, including the overlapping sections, regardless of zoom level or route role.

Actual behavior

Only alternative routes have missing segments.

Missing sections correspond exactly to the overlapping area with the main route.

Switching that alternative to become the main route causes it to render correctly.

The visibility of missing sections changes dynamically with zoom level — visible when zoomed in, missing when zoomed out.

Is this a one-time issue or a repeatable issue?

repeatable

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn’t working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions