@mapsindoors/react-native-maps-indoors-mapbox 2.9.0 → 2.9.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.
- package/README.md +36 -2
- package/android/build.gradle +1 -1
- package/ios/core/DirectionsRendererModule.swift +288 -307
- package/ios/core/MapControlModule.swift +326 -244
- package/ios/core/MapsIndoorsModule.swift +15 -12
- package/ios/core/Sources/MainThread/CallGeneration.swift +38 -0
- package/ios/core/Sources/MainThread/MainThread.swift +25 -0
- package/package.json +5 -1
- package/react-native-maps-indoors-mapbox.podspec +6 -2
- package/src/core/MPCameraPosition.ts +1 -1
- package/src/core/MPDirectionsRenderer.ts +12 -2
- package/src/core/MPRouteStopIconConfig.ts +5 -3
- package/src/core/RouteStopIconConfig.ts +5 -1
- package/src/core/__tests__/MPBounds.test.ts +0 -109
- package/src/core/__tests__/MPFilter.test.ts +0 -76
- package/src/core/__tests__/MPLanguageTag.test.ts +0 -168
- package/src/core/__tests__/MPPoint.test.ts +0 -82
- package/src/core/__tests__/MPSolution.test.ts +0 -107
- package/src/core/__tests__/MapsIndoors.language.test.ts +0 -180
package/README.md
CHANGED
|
@@ -2,11 +2,45 @@
|
|
|
2
2
|
|
|
3
3
|
## Documentation
|
|
4
4
|
|
|
5
|
-
Visit [our reference document site](https://app.mapsindoors.com/mapsindoors/reference/react-native/mapbox/2.9.
|
|
5
|
+
Visit [our reference document site](https://app.mapsindoors.com/mapsindoors/reference/react-native/mapbox/2.9.1/index.html) to get an overview of what the MapsIndoors SDK offers.
|
|
6
6
|
|
|
7
7
|
## Changelog
|
|
8
8
|
|
|
9
|
-
### [2.9.
|
|
9
|
+
### [2.9.1] - 2026-10-15
|
|
10
|
+
|
|
11
|
+
#### Changed
|
|
12
|
+
|
|
13
|
+
- `MPRouteStopIconConfig.getImage()` returns a string instead of a `URL`, and a custom
|
|
14
|
+
`RouteStopIconConfig.getImage()` may return either
|
|
15
|
+
- Updated the MapsIndoors Android and iOS SDKs to 4.23.0
|
|
16
|
+
- On iOS, camera moves the SDK makes for you (`goTo`, selecting with `moveCamera`, filter, highlight
|
|
17
|
+
and route fits) are instant when the system's Reduce Motion setting is on
|
|
18
|
+
- On Android, with a custom floor selector that turns automatic floor changes off, `goTo`,
|
|
19
|
+
`selectLocation`, `setFilter` and `setHighlight` keep the current floor
|
|
20
|
+
- On iOS, `MapControl` and `MPDirectionsRenderer` promises settle once the map has applied the call,
|
|
21
|
+
not before
|
|
22
|
+
- On iOS, the `MapControl.getCurrent*` getters and `isFloorSelectorHidden` resolve `null` when there
|
|
23
|
+
is no map control, instead of crashing
|
|
24
|
+
- On iOS, `MPDirectionsRenderer.setRoute` and `setDefaultRouteStopIcon` reject when a URL icon fails
|
|
25
|
+
to download, instead of never settling
|
|
26
|
+
|
|
27
|
+
#### Fixed
|
|
28
|
+
|
|
29
|
+
- `MPDirectionsRenderer.setDefaultRouteStopIcon` and `setRoute` rejected an `MPRouteStopIconConfig`
|
|
30
|
+
stop icon with "Invalid URL" on React Native versions with a standards-compliant `URL`, such as
|
|
31
|
+
Expo 55, so the icon never reached the map. Labels containing `?` or `#` now work too
|
|
32
|
+
- Setting `MapControl.showUserPosition` no longer crashes the app on iOS. The iOS SDK now accepts
|
|
33
|
+
the call from React Native's module thread, where 4.20.0 required the main thread
|
|
34
|
+
- `MapControl` and `MPDirectionsRenderer` calls no longer crash the app on iOS. They now reach the map
|
|
35
|
+
on the main thread, in the order they were made
|
|
36
|
+
- `MPDirectionsRenderer.setRoute` and `setDefaultRouteStopIcon` with URL icons no longer overwrite a
|
|
37
|
+
later `setRoute`, `clear` or `setDefaultRouteStopIcon` when their download finishes last
|
|
38
|
+
- The published package no longer contains the core unit tests (`src/core/__tests__`)
|
|
39
|
+
- `MPCameraPosition.create` no longer swaps tilt and bearing, so reading the camera with
|
|
40
|
+
`getCurrentCameraPosition` and passing the result back to `animateCamera` keeps the map's pitch
|
|
41
|
+
and rotation
|
|
42
|
+
|
|
43
|
+
### [2.9.0] - 2026-09-18
|
|
10
44
|
|
|
11
45
|
#### Added
|
|
12
46
|
|
package/android/build.gradle
CHANGED
|
@@ -106,7 +106,7 @@ dependencies {
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
implementation 'com.mapbox.maps:android-ndk27:11.16.1'
|
|
109
|
-
implementation 'com.mapspeople.mapsindoors:mapbox-ndk27:4.
|
|
109
|
+
implementation 'com.mapspeople.mapsindoors:mapbox-ndk27:4.23.0'
|
|
110
110
|
implementation 'com.facebook.react:react-native:+' // From node_modules
|
|
111
111
|
implementation 'androidx.core:core-ktx:1.3.2'
|
|
112
112
|
implementation 'com.github.bumptech.glide:glide:4.16.0'
|