react-native-steerpath-smart-map 1.19.0 → 1.19.2
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/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,16 @@ This package is built on top of Steerpath's Smart SDK, and most of releases are
|
|
|
15
15
|
- [iOS](https://s3-eu-west-1.amazonaws.com/steerpath/ios/releases/smart-sdk-changelog/index.html)
|
|
16
16
|
- [Web](https://s3-eu-west-1.amazonaws.com/steerpath-web-sdk/documentation/smart/latest/index.html)
|
|
17
17
|
|
|
18
|
+
# [1.19.2] - 2023-02-14
|
|
19
|
+
|
|
20
|
+
- Bump Web Smart SDK version to 2.2.7
|
|
21
|
+
- Bump Android Smart SDK version to android-smart-1.18.0
|
|
22
|
+
- Bump iOS Smart SDK version to 1.16.2
|
|
23
|
+
|
|
24
|
+
# [1.19.1] - 2023-02-10
|
|
25
|
+
|
|
26
|
+
- Web to return camera options from callback in getSmartMapCameraOptions
|
|
27
|
+
|
|
18
28
|
# [1.19.0] - 2023-02-06
|
|
19
29
|
|
|
20
30
|
- Bump Android Smart SDK version to android-smart-1.17.1
|
|
@@ -26,13 +36,16 @@ This package is built on top of Steerpath's Smart SDK, and most of releases are
|
|
|
26
36
|
- Bump iOS Smart SDK version to 1.16.1
|
|
27
37
|
- Bump Web SDK version to 2.2.6
|
|
28
38
|
|
|
29
|
-
# [1.17.7]
|
|
39
|
+
# [1.17.7] - 2022-11-25
|
|
40
|
+
|
|
30
41
|
- Update web sdk
|
|
31
42
|
|
|
32
|
-
# [1.17.6]
|
|
43
|
+
# [1.17.6] - 2022-11-25
|
|
44
|
+
|
|
33
45
|
- Better default values for camera animations
|
|
34
46
|
|
|
35
|
-
# [1.17.5]
|
|
47
|
+
# [1.17.5] - 2022-11-15
|
|
48
|
+
|
|
36
49
|
- Localization updates to example app and updated documentation
|
|
37
50
|
|
|
38
51
|
# [1.17.4] - 2022-11-10
|
|
@@ -70,9 +83,11 @@ This package is built on top of Steerpath's Smart SDK, and most of releases are
|
|
|
70
83
|
- Bump Android SDK version to android-smart-1.14.6
|
|
71
84
|
|
|
72
85
|
# [1.16.4] - 2022-07-26
|
|
86
|
+
|
|
73
87
|
- Bump Web Smart SDK version to 2.1.4
|
|
74
88
|
|
|
75
89
|
# [1.16.3] - 2022-07-26
|
|
90
|
+
|
|
76
91
|
- Bump Web Smart SDK version to 2.1.3
|
|
77
92
|
|
|
78
93
|
# [1.16.2] - 2022-06-16
|
|
@@ -90,6 +105,7 @@ This package is built on top of Steerpath's Smart SDK, and most of releases are
|
|
|
90
105
|
- Update example app's react native version to 0.68.1
|
|
91
106
|
|
|
92
107
|
# [1.15.5] - 2022-05-11
|
|
108
|
+
|
|
93
109
|
- Bump Web Smart SDK to 2.1.2
|
|
94
110
|
|
|
95
111
|
# [1.15.4] - 2022-05-11
|
|
@@ -158,6 +174,7 @@ Special release where search UI is completely disabled on iOS. Not recommended t
|
|
|
158
174
|
- Bump iOS Smart SDK to 1.15.4
|
|
159
175
|
|
|
160
176
|
## [1.12.7] - 2021-10-25
|
|
177
|
+
|
|
161
178
|
- Bump Web SDK to steerpath-smart-sdk 1.7.2
|
|
162
179
|
- Bug fix for setCamera and animateCamera methods
|
|
163
180
|
|
package/android/build.gradle
CHANGED
|
@@ -53,7 +53,7 @@ repositories {
|
|
|
53
53
|
|
|
54
54
|
dependencies {
|
|
55
55
|
implementation "com.facebook.react:react-native:${safeExtGet('reactnativeVersion', '+')}"
|
|
56
|
-
implementation "com.steerpath:smart:android-smart-1.
|
|
56
|
+
implementation "com.steerpath:smart:android-smart-1.18.0"
|
|
57
57
|
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
|
|
58
58
|
implementation "androidx.lifecycle:lifecycle-viewmodel:2.2.0"
|
|
59
59
|
}
|
package/dist/SmartMapView.web.js
CHANGED
|
@@ -161,10 +161,6 @@ export var SmartMapView = forwardRef(function (props, ref) {
|
|
|
161
161
|
removeAllMarkers: function () {
|
|
162
162
|
runCommand(smartMapRef.current, "removeAllMarkers", []);
|
|
163
163
|
},
|
|
164
|
-
getSmartMapCameraOptions: function () {
|
|
165
|
-
var smartMapCameraOptions = smartMapRef.current ? smartMapRef.current.getSmartMapCameraOptions() : null;
|
|
166
|
-
return smartMapCameraOptions;
|
|
167
|
-
},
|
|
168
164
|
animateCamera: function (_a) {
|
|
169
165
|
var latitude = _a.latitude, longitude = _a.longitude, zoomLevel = _a.zoomLevel, bearing = _a.bearing, pitch = _a.pitch, floorIndex = _a.floorIndex, buildingRef = _a.buildingRef;
|
|
170
166
|
runCommand(smartMapRef.current, "animateCamera", [
|
|
@@ -261,6 +257,11 @@ export var SmartMapView = forwardRef(function (props, ref) {
|
|
|
261
257
|
callback,
|
|
262
258
|
]);
|
|
263
259
|
},
|
|
260
|
+
getSmartMapCameraOptions: function (callback) {
|
|
261
|
+
var smartMapCameraOptions = smartMapRef.current ? smartMapRef.current.getSmartMapCameraOptions() : null;
|
|
262
|
+
if (smartMapCameraOptions)
|
|
263
|
+
callback(smartMapCameraOptions);
|
|
264
|
+
},
|
|
264
265
|
stopLive: function () {
|
|
265
266
|
runCommand(smartMapRef.current, "stopLive", []);
|
|
266
267
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-steerpath-smart-map",
|
|
3
3
|
"title": "React Native Steerpath Smart Map",
|
|
4
|
-
"version": "1.19.
|
|
4
|
+
"version": "1.19.2",
|
|
5
5
|
"description": "Steerpath SmartMapView for React Native",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"scripts": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"licenseFilename": "LICENSE",
|
|
25
25
|
"readmeFilename": "README.md",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"steerpath-smart-sdk": "^2.2.
|
|
27
|
+
"steerpath-smart-sdk": "^2.2.7"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": "^16.5.0",
|
package/src/SmartMapView.web.tsx
CHANGED
|
@@ -225,10 +225,6 @@ export const SmartMapView = forwardRef<SmartMapViewMethods, SmartMapViewProps>(
|
|
|
225
225
|
removeAllMarkers() {
|
|
226
226
|
runCommand(smartMapRef.current, "removeAllMarkers", []);
|
|
227
227
|
},
|
|
228
|
-
getSmartMapCameraOptions(): SmartMapCameraOptions | null {
|
|
229
|
-
const smartMapCameraOptions: SmartMapCameraOptions | null = smartMapRef.current ? smartMapRef.current.getSmartMapCameraOptions() : null
|
|
230
|
-
return smartMapCameraOptions;
|
|
231
|
-
},
|
|
232
228
|
animateCamera({
|
|
233
229
|
latitude,
|
|
234
230
|
longitude,
|
|
@@ -332,6 +328,10 @@ export const SmartMapView = forwardRef<SmartMapViewMethods, SmartMapViewProps>(
|
|
|
332
328
|
callback,
|
|
333
329
|
]);
|
|
334
330
|
},
|
|
331
|
+
getSmartMapCameraOptions(callback) {
|
|
332
|
+
const smartMapCameraOptions: SmartMapCameraOptions = smartMapRef.current ? smartMapRef.current.getSmartMapCameraOptions() : null
|
|
333
|
+
if (smartMapCameraOptions) callback(smartMapCameraOptions)
|
|
334
|
+
},
|
|
335
335
|
stopLive() {
|
|
336
336
|
runCommand(smartMapRef.current, "stopLive", []);
|
|
337
337
|
},
|