existe uma API pública para controlar o zoom do Free Drive no NavigationView Drop-in
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start with the DropInNavigationView API, its customizeViewOptions configuration, and the startFreeDrive entry point shown in the issue. Review how MapboxNavigationViewportDataSource and followingZoomPropertyOverride are intended to interact with Free Drive, then determine whether a supported public zoom control exists and document the expected behavior or API gap.
Written by the indexing model from the issue text.
Description
dropInNavigationView.customizeViewOptions {
mapStyleUriDay = "mapbox://styles/mapbox/navigation-day-v1"
showManeuver = true
showSpeedLimit = false
showRoadName = false
showTripProgress = false
showActionButtons = false
showEndNavigationButton = false
showStartNavigationButton = false
showRoutePreviewButton = false
showInfoPanelInFreeDrive = false
}
// Tenta definir zoom 16.5 no modo Free Drive
dropInNavigationView.post {
try {
MapboxNavigationApp.current()?.let { nav ->
dropInNavigationView.api.startFreeDrive()
// Tenta criar um viewportDataSource e sobrescrever o zoom
val viewportDataSource = com.mapbox.navigation.ui.maps.camera.data.MapboxNavigationViewportDataSource(
dropInNavigationView.retrieveMapboxMap() ?: return@let
)
viewportDataSource.options.followingFrameOptions.zoomUpdatesAllowed = false
viewportDataSource.followingZoomPropertyOverride(16.5)
viewportDataSource.evaluate()
}
} catch (e: Exception) {
Log.e("MainActivity", "Erro ao configurar zoom Free Drive: ${e.message}")
}
}
tentei varias formulas
- Dominant language
- Kotlin
- Stars
- 651
- Forks
- 321
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mapbox/mapbox-navigation-android
-
Difficulty 1/5 1-3 hours Newbie friendliness 65/100
mapbox/mapbox-navigation-android#7852 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
mapbox/mapbox-navigation-android#7966 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
mapbox/mapbox-navigation-android#7965 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
mapbox/mapbox-navigation-android#7955 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
mapbox/mapbox-navigation-android#7948 ·
All issues in mapbox/mapbox-navigation-android
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bitcoindevkit/bdk-ffi#1125 ·
-
Issue: Bug
Difficulty 1/5 Under an hour Newbie friendliness 91/100
OpenAPITools/openapi-generator#24978 ·
-
helsemelding-json-schema json-schema-core
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
contributor: external needs review
Difficulty 2/5 1-3 hours Newbie friendliness 82/100