Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KDocs Issues in MapboxRouteArrowApi #7852

Open
commonsguy opened this issue Aug 1, 2024 · 0 comments
Open

KDocs Issues in MapboxRouteArrowApi #7852

commonsguy opened this issue Aug 1, 2024 · 0 comments

Comments

@commonsguy
Copy link

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant