mapbox / mapbox/mapbox-navigation-android
OnRouteSelectionChangeListener doesn't fire when clicking already-selected route
Nessuno ha ancora preso questa issue.
- Lingua principale
- Kotlin
- Stelle
- 651
- Fork
- 321
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
We implemented a simple MapView with a navigationRoute, and we would like to implement a function when the user taps on any navigationRoute (even on the currently selected), the map zooms out and shows the entire route. Currently the navigationRoute.onRouteSelectionChangeListener only works if there are at least 2 routes and the user select a different one than the currently selected. How could I access the click event of the already selected route?
### Steps to reproduce
1. Create a MapView
2. Add a NavigationRoute without alternatives and with onRouteSelectionChangeListener
3. Click on the currently shown route
### Expected behavior
The app should have a method which fires when the user taps on any route.
### Actual behavior
The onRouteSelectionChangeListener does not fire.
### Configuration
**Android versions:** 16-28
**Device models:** Any
**Mapbox SDK versions:** 8.3.0
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia riproducendo il problema con una MapView e una NavigationRoute senza alternative su Android SDK 8.3.0, usando la configurazione di onRouteSelectionChangeListener descritta nel report. Traccia i punti di ingresso del tocco sulla route e del selection listener per determinare il comportamento attuale per la route già selezionata. Il lavoro è completato quando il tocco su qualsiasi route visualizzata, inclusa la route selezionata, produce il callback documentato o un’alternativa esplicitamente documentata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- android, kotlin
- Ambito
- mobile
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100