@jacques_gordon/expo-mapbox-navigation 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -139,7 +139,6 @@ class ExpoMapboxNavigationView(context: Context, appContext: AppContext) :
|
|
|
139
139
|
// ── Pixel density ─────────────────────────────────────────────────────────
|
|
140
140
|
private val dp = context.resources.displayMetrics.density
|
|
141
141
|
|
|
142
|
-
// ── Viewport padding ──────────────────────────────────────────────────────
|
|
143
142
|
// ── Viewport padding — EXACT official Mapbox values from the camera guide ──
|
|
144
143
|
// Previous bottom=300dp pushed the focal point too far up, causing
|
|
145
144
|
// the puck to visibly jump/drift between location updates.
|
|
@@ -811,7 +810,7 @@ class ExpoMapboxNavigationView(context: Context, appContext: AppContext) :
|
|
|
811
810
|
onManeuverBannerPressed(mapOf("steps" to stepsPayload))
|
|
812
811
|
}
|
|
813
812
|
|
|
814
|
-
|
|
813
|
+
private fun cancelNavigation() {
|
|
815
814
|
speechApi.cancel()
|
|
816
815
|
voiceInstructionsPlayer.clear()
|
|
817
816
|
mapboxNavigation?.setNavigationRoutes(listOf())
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jacques_gordon/expo-mapbox-navigation",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "Expo module for Mapbox Navigation SDK with 16KB page size support, NDK27, and Mapbox Maps v11.11.0+",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|