Skip to content

[Android] Route Line Not Updating (Clearing) During Navigation #145

@behzod-rajabov

Description

@behzod-rajabov

I am using MapLibre in my Android application to display a navigation route. The route is drawn correctly, and navigation works fine. However, as the user moves along the route, the already-traveled portion of the route does not get cleared or updated. Instead, the full route remains visible until the end of navigation or until the route is redrawn.

I expected the route line to update dynamically by clearing or fading the traveled portion, but this does not happen.

Steps to Reproduce:
1. Initialize MapLibre and display a navigation route.
2. Start navigation along the route.
3. Move along the route while observing the map.
4. Notice that the traveled portion of the route remains visible instead of being cleared.

Expected Behavior:

The route should be updated dynamically, and the already-traveled portion should disappear or be visually distinguished (e.g., faded or removed).

Actual Behavior:

The full route remains unchanged, and the traveled portion is not cleared.

Environment:
• MapLibre Version: 11.8.0
• Android Version: Any version
• Device: Any device

Additional Notes:

Is there a built-in way to update the route dynamically during navigation? If not, what would be the recommended approach to achieve this effect?

Thank you!

Screenshot:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions