KDocs Issues in MapboxRouteArrowApi
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- kotlin
- Domain
- documentation
Research direction
Find the KDocs for MapboxRouteArrowApi and inspect the examples using withAboveLayerId() and updateUpcomingManeuverArrow(). Check the current RouteArrowOptions and MapboxRouteArrowApi APIs, then update the snippets to use available, non-deprecated calls; done means the examples no longer reference either reported issue.
Written by the indexing model from the issue text.
Description
In com.mapbox.navigationcore:ui-maps:3.2.0, the KDocs for MapboxRouteArrowApi have a couple of issues.
First, the initial code snippets show withAboveLayerId(), which is deprecated:
* RouteArrowOptions routeArrowOptions = new RouteArrowOptions.Builder(context)
* .withAboveLayerId(RouteLayerConstants.TOP_LEVEL_ROUTE_LINE_LAYER_ID)
* .build()
* MapboxRouteArrowApi routeArrow = new MapboxRouteArrowApi()
* MapboxRouteArrowView routeArrowView = new MapboxRouteArrowView(routeArrowOptions)
* val routeArrowOptions = RouteArrowOptions.Builder(context)
* .withAboveLayerId(RouteLayerConstants.TOP_LEVEL_ROUTE_LINE_LAYER_ID)
* .build()
* val routeArrow = MapboxRouteArrowApi()
* val routeArrowView = MapboxRouteArrowView(routeArrowOptions)
Also, the final code snippet shows a updateUpcomingManeuverArrow() that does not exist:
* override fun onRouteProgressChanged(routeProgress: RouteProgress) {
* val updateState = routeArrow.updateUpcomingManeuverArrow(routeProgress)
* routeArrowView.render(mapboxMap.getStyle(), updateState)
- 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 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 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
mapbox/mapbox-navigation-android#7947 ·
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 ·
-
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
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100