Skip to content

Commit

Permalink
[ui] refactor vanishing point calculation to use EPSG:3857 projection
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasPaczos committed Oct 20, 2020
1 parent a3dfcaa commit 69cdb8c
Show file tree
Hide file tree
Showing 9 changed files with 322 additions and 322 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class ReplayActivity : AppCompatActivity(), OnMapReadyCallback {
this.mapboxMap = mapboxMap
mapboxMap.setStyle(Style.MAPBOX_STREETS) { style ->
mapboxMap.moveCamera(CameraUpdateFactory.zoomTo(15.0))
navigationMapboxMap = NavigationMapboxMap(mapView, mapboxMap, this, true)
navigationMapboxMap = NavigationMapboxMap(mapView, mapboxMap, this, null, true, true)
initializeFirstLocation()

mapboxNavigation?.attachFasterRouteObserver(
Expand All @@ -98,7 +98,7 @@ class ReplayActivity : AppCompatActivity(), OnMapReadyCallback {
RouteOptions.builder().applyDefaultParams()
.accessToken(Utils.getMapboxAccessToken(applicationContext))
.coordinates(originLocation.toPoint(), null, latLng.toPoint())
.alternatives(true)
.alternatives(false)
.profile(DirectionsCriteria.PROFILE_DRIVING_TRAFFIC)
.overview(DirectionsCriteria.OVERVIEW_FULL)
.annotationsList(
Expand Down
1 change: 1 addition & 0 deletions libnavigation-ui/api/current.txt
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ package com.mapbox.navigation.ui.route {
method public com.mapbox.navigation.ui.route.NavigationMapRoute.Builder withRouteStyleDescriptors(java.util.List<com.mapbox.navigation.ui.route.RouteStyleDescriptor!>!);
method public com.mapbox.navigation.ui.route.NavigationMapRoute.Builder withStyle(@StyleRes int);
method public com.mapbox.navigation.ui.route.NavigationMapRoute.Builder withVanishRouteLineEnabled(boolean);
method public com.mapbox.navigation.ui.route.NavigationMapRoute.Builder withVanishingRouteLineUpdateIntervalNano(long);
}

public interface OnRouteSelectionChangeListener {
Expand Down

This file was deleted.

Loading

0 comments on commit 69cdb8c

Please sign in to comment.