Skip to content

Get instruction image from onNewBannerInstructions listener #7839

@fawzirifai

Description

@fawzirifai

I am listening to onNewBannerInstructions to show the instruction text and image on our custom view, without using any of Mapbox UIs. When onNewBannerInstructions is called, I check the components of the primary instruction and the image URL is null. How can I get the image for the instruction?

Screenshot 2024-07-02 at 7 52 25 AM

Android API: 34
Mapbox Navigation SDK version: com.mapbox.navigationcore:navigation:3.0.2

Steps to trigger behavior

  1. Start a new trip session
  2. register banner instructions observer

Expected behavior

We should be able to extract and use the instruction image from Mapbox Navigation SDK.

Actual behavior

We are unable to extract and use the instruction image from Mapbox Navigation SDK.

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