[Question] Disabling / intercepting off route recalculation #89
ianthetechie
started this conversation in
General
Replies: 1 comment 6 replies
-
I enabled discussion for this repo 👍. Regarding the version, I would recommend to use the latest master, once we merge #86, we will probably release a new major version. You need to create a custom RouteFetcher. Essentially, create a custom version of: We are open for PRs, so feel free to contribute a fetcher for a different provider like Stadia maybe ;) - that said, we should probably still refactor a bit to have a clear interface all providers can reuse. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I don't see discussions enabled on this repo for asking questions, so I'm opening an issue.
Android API: 33
Maplibre Navigation SDK version: 2.0.0
I am building a basic navigation app and am currently using the
NavigationLauncher
(as in part of the sample app) because it's easy and doing anything else looked like an inordinate amount of work to fit into a Jetpack Compose app. This cleanly launches everything in another activity... anyways...My question is exactly how I'd go about either disabling or intercepting the off route detection -> forced recalculation. I am not using Mapbox, so the default behavior seems to just get the app into a broken state of "recalculating" but it will never actually succeed.
I believe it's possible to attach listeners and set more options on the
MapboxNavigation
object itself, but I can't quite figure out how this is supposed to be set up. It seems unsupported if using the launcher. Any pointers would be appreciated as to alternate approaches that would let us set up the listeners.Beta Was this translation helpful? Give feedback.
All reactions