Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
39aa963
replaced viewmodel to simple class realisation
RetiredKnight Sep 30, 2024
250a309
fixed gradle dependencies error
RetiredKnight Sep 30, 2024
3c2767d
changing instruction view representation
RetiredKnight Sep 30, 2024
3174826
Fixed instruction view crashing, click listener, paddings, rerouting
RetiredKnight Oct 23, 2024
1359a51
Fixed instruction view crashing, click listener, paddings, rerouting
RetiredKnight Nov 8, 2024
5eacb91
added configs for map theme
RetiredKnight Nov 8, 2024
5a2bc0f
removed bottomsheet
RetiredKnight Dec 5, 2024
a805cb8
Merge pull request #3 from RegionLab/release/navigation-1.2.16
vizhev Dec 25, 2024
3f760db
release_maplibre_10: Fix start navigation in demo app
vizhev Dec 26, 2024
008cd24
Removed bottomsheet behavior
RetiredKnight Dec 27, 2024
5034b16
Temporarily hided instructionview, zoom fixes, route updates
RetiredKnight Jan 25, 2025
d3d4dac
getting user position from args
RetiredKnight Jan 25, 2025
e6846c0
Merge branch 'main' into maplibre10_route_zoom_fixes
Taxup May 12, 2025
5e97c01
fix after merge
Taxup May 13, 2025
10c5a2c
check mapbox request
Taxup May 16, 2025
0acc87d
mapbox request
Taxup May 16, 2025
b5289d7
test publish
Taxup May 19, 2025
be1c783
add aar
Taxup May 19, 2025
e9df10f
fix aar
Taxup May 19, 2025
485f7b0
remove mapboxes TextUtils
Taxup May 20, 2025
e4baee8
republish
Taxup May 20, 2025
fcef550
removed onNavigationReadyCallback, useless functions and variables
Taxup May 21, 2025
39f7265
add function to add symbols
Taxup May 22, 2025
ae05f10
add update function, and initializing changes
Taxup May 22, 2025
6552289
enable location component
Taxup May 22, 2025
05d9da7
enable follow location
Taxup May 23, 2025
352bf4f
remove adding default destination marker, and updates to view
Taxup May 27, 2025
1c47b50
instructionView visibility
Taxup May 27, 2025
2f5dcf6
add rotating markers
Taxup May 27, 2025
2e516fd
fix instruction listeners, low fps crash, and styling banner
Taxup May 28, 2025
4e7722b
fix instruction background
Taxup May 29, 2025
cd95f3f
fix check night mode in AppCompatDelegate
Taxup May 29, 2025
40cdb26
dont use default location engine
Taxup Jun 2, 2025
175647d
add pre navigation location engine
Taxup Jun 3, 2025
533a0be
fix instructionView paddings
Taxup Jun 27, 2025
c95d3ec
add mute configuration
Taxup Jun 27, 2025
2301d83
downgrade the versions
Taxup Jun 27, 2025
9408f07
update camera tilt, to optimize map performance
Taxup Jul 3, 2025
3f355af
Merge branch 'refs/heads/main' into maplibre_using_mapbox_request
Taxup Jul 11, 2025
4e58835
fix infinite rerouting, add RoutingService
Taxup Jul 11, 2025
121de6c
fix crash
Taxup Jul 11, 2025
3525e4a
try fix publication
Taxup Jul 11, 2025
62f7b98
try fix publication
Taxup Jul 11, 2025
4f23099
try fix publication
Taxup Jul 11, 2025
5847758
expose navigation options
Taxup Jul 11, 2025
caee046
Merge branch 'main' into maplibre_using_mapbox_request
Taxup Jul 22, 2025
525cd2d
fix cancel route request on stopNavigation, fix textToSpeech leak
Taxup Jul 22, 2025
0b41634
fix min zoom
Taxup Jul 23, 2025
2c01391
Merge branch 'main' into maplibre_using_mapbox_request
Taxup Sep 23, 2025
54f14c4
update versions
Taxup Sep 23, 2025
b38f16b
Merge branch 'refs/heads/main' into maplibre_using_mapbox_request
Taxup Oct 14, 2025
340b269
update versions
Taxup Oct 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ With this SDK you can implement turn-by-turn navigation in your own Android app
- No Telemetry


## Why have we forked
## Why have we forked¬

1. Mapbox decided to put a closed-source component to their navigation SDK and introduced a non-open-source license. Maplibre wants an open-source solution.
2. Mapbox decided to put telemetry in their SDK. We couldn't turn this off without adjusting the source.
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ android {
defaultConfig {
applicationId = "org.maplibre.navigation.android.example"
compileSdk = 35
minSdk = 21
minSdk = 23

versionCode = 1
versionName = project.properties.get("versionName") as String? ?: "0.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ class GraphHopperNavigationActivity :

binding = ActivityNavigationUiBinding.inflate(layoutInflater)
setContentView(binding.root)
binding.mapView.apply {
binding.navigationView.apply {
onCreate(savedInstanceState)
getMapAsync(this@GraphHopperNavigationActivity)
// getMapAsync(this@GraphHopperNavigationActivity)
}

binding.startRouteButton.setOnClickListener {
Expand All @@ -86,18 +86,18 @@ class GraphHopperNavigationActivity :
simulateRoute = checked
}

binding.clearPoints.setOnClickListener {
if (::mapLibreMap.isInitialized) {
mapLibreMap.markers.forEach {
mapLibreMap.removeMarker(it)
}
}
destination = null
it.visibility = View.GONE
binding.startRouteLayout.visibility = View.GONE

navigationMapRoute?.removeRoute()
}
// binding.clearPoints.setOnClickListener {
// if (::mapLibreMap.isInitialized) {
// mapLibreMap.markers.forEach {
// mapLibreMap.removeMarker(it)
// }
// }
// destination = null
// it.visibility = View.GONE
// binding.startRouteLayout.visibility = View.GONE
//
// navigationMapRoute?.removeRoute()
// }
}

override fun onMapReady(mapLibreMap: MapLibreMap) {
Expand All @@ -106,7 +106,7 @@ class GraphHopperNavigationActivity :
Style.Builder().fromUri(getString(R.string.map_style_light))
) { style ->
enableLocationComponent(style)
navigationMapRoute = NavigationMapRoute(binding.mapView, mapLibreMap)
// navigationMapRoute = NavigationMapRoute(binding.mapView, mapLibreMap)
mapLibreMap.addOnMapClickListener(this)

Snackbar.make(
Expand Down Expand Up @@ -143,7 +143,7 @@ class GraphHopperNavigationActivity :
destination = Point(point.longitude, point.latitude)

mapLibreMap.addMarker(MarkerOptions().position(point))
binding.clearPoints.visibility = View.VISIBLE
// binding.clearPoints.visibility = View.VISIBLE
calculateRoute()
return true
}
Expand Down Expand Up @@ -187,7 +187,7 @@ class GraphHopperNavigationActivity :
// Create request object. Requires graphhopper_url to be set in developer-config.xml
val request = Request.Builder()
.header("User-Agent", "MapLibre Android Navigation SDK Demo App")
.url(getString(R.string.graphhopper_url))
// .url(getString(R.string.graphhopper_url))
.post(requestBodyJson.toRequestBody("application/json; charset=utf-8".toMediaType()))
.build()

Expand Down Expand Up @@ -246,39 +246,39 @@ class GraphHopperNavigationActivity :

override fun onResume() {
super.onResume()
binding.mapView.onResume()
// binding.mapView.onResume()
}

override fun onPause() {
super.onPause()
binding.mapView.onPause()
// binding.mapView.onPause()
}

override fun onStart() {
super.onStart()
binding.mapView.onStart()
// binding.mapView.onStart()
}

override fun onStop() {
super.onStop()
binding.mapView.onStop()
// binding.mapView.onStop()
}

override fun onLowMemory() {
super.onLowMemory()
binding.mapView.onLowMemory()
// binding.mapView.onLowMemory()
}

override fun onDestroy() {
super.onDestroy()
if (::mapLibreMap.isInitialized) {
mapLibreMap.removeOnMapClickListener(this)
}
binding.mapView.onDestroy()
// binding.mapView.onDestroy()
}

override fun onSaveInstanceState(outState: Bundle) {
super.onSaveInstanceState(outState)
binding.mapView.onSaveInstanceState(outState)
// binding.mapView.onSaveInstanceState(outState)
}
}
Loading
Loading