react-native-steerpath-smart-map 1.17.5 → 1.17.6
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 +0 -13
- package/dist/SmartMapView.js +6 -6
- package/dist/SmartMapView.web.js +6 -6
- package/package.json +1 -1
- package/src/SmartMapView.tsx +6 -6
- package/src/SmartMapView.web.tsx +6 -6
package/README.md
CHANGED
|
@@ -45,19 +45,6 @@ repositories {
|
|
|
45
45
|
If you are using React-Native < 0.60:
|
|
46
46
|
`$ react-native link react-native-steerpath-smart-map`
|
|
47
47
|
|
|
48
|
-
### To use this SDK for the web:
|
|
49
|
-
|
|
50
|
-
You need to add the following lines to your html file (`index.html` if using
|
|
51
|
-
`create-react-app`):
|
|
52
|
-
|
|
53
|
-
```html
|
|
54
|
-
<script src="https://s3-eu-west-1.amazonaws.com/steerpath-web-sdk/releases/smart/1.0.14/steerpath-smart-1.0.14.min.js"></script>
|
|
55
|
-
<link
|
|
56
|
-
href="https://s3-eu-west-1.amazonaws.com/steerpath-web-sdk/releases/smart/1.0.14/steerpath-smart-1.0.14.css"
|
|
57
|
-
rel="stylesheet"
|
|
58
|
-
/>
|
|
59
|
-
```
|
|
60
|
-
|
|
61
48
|
## Run the example app
|
|
62
49
|
|
|
63
50
|
```bash
|
package/dist/SmartMapView.js
CHANGED
|
@@ -48,9 +48,9 @@ export var SmartMapView = forwardRef(function _SmartMapViewFC(props, ref) {
|
|
|
48
48
|
latitude,
|
|
49
49
|
longitude,
|
|
50
50
|
zoomLevel,
|
|
51
|
-
bearing
|
|
52
|
-
pitch
|
|
53
|
-
floorIndex
|
|
51
|
+
bearing !== null && bearing !== void 0 ? bearing : 0,
|
|
52
|
+
pitch !== null && pitch !== void 0 ? pitch : 0,
|
|
53
|
+
floorIndex !== null && floorIndex !== void 0 ? floorIndex : 0,
|
|
54
54
|
buildingRef,
|
|
55
55
|
]);
|
|
56
56
|
},
|
|
@@ -131,9 +131,9 @@ export var SmartMapView = forwardRef(function _SmartMapViewFC(props, ref) {
|
|
|
131
131
|
latitude,
|
|
132
132
|
longitude,
|
|
133
133
|
zoomLevel,
|
|
134
|
-
bearing
|
|
135
|
-
pitch
|
|
136
|
-
floorIndex
|
|
134
|
+
bearing !== null && bearing !== void 0 ? bearing : 0,
|
|
135
|
+
pitch !== null && pitch !== void 0 ? pitch : 0,
|
|
136
|
+
floorIndex !== null && floorIndex !== void 0 ? floorIndex : 0,
|
|
137
137
|
buildingRef,
|
|
138
138
|
]);
|
|
139
139
|
},
|
package/dist/SmartMapView.web.js
CHANGED
|
@@ -105,9 +105,9 @@ export var SmartMapView = forwardRef(function (props, ref) {
|
|
|
105
105
|
latitude,
|
|
106
106
|
longitude,
|
|
107
107
|
zoomLevel,
|
|
108
|
-
bearing,
|
|
109
|
-
pitch,
|
|
110
|
-
floorIndex,
|
|
108
|
+
bearing !== null && bearing !== void 0 ? bearing : 0,
|
|
109
|
+
pitch !== null && pitch !== void 0 ? pitch : 0,
|
|
110
|
+
floorIndex !== null && floorIndex !== void 0 ? floorIndex : 0,
|
|
111
111
|
buildingRef,
|
|
112
112
|
]);
|
|
113
113
|
},
|
|
@@ -167,9 +167,9 @@ export var SmartMapView = forwardRef(function (props, ref) {
|
|
|
167
167
|
latitude,
|
|
168
168
|
longitude,
|
|
169
169
|
zoomLevel,
|
|
170
|
-
bearing,
|
|
171
|
-
pitch,
|
|
172
|
-
floorIndex,
|
|
170
|
+
bearing !== null && bearing !== void 0 ? bearing : 0,
|
|
171
|
+
pitch !== null && pitch !== void 0 ? pitch : 0,
|
|
172
|
+
floorIndex !== null && floorIndex !== void 0 ? floorIndex : 0,
|
|
173
173
|
buildingRef,
|
|
174
174
|
]);
|
|
175
175
|
},
|
package/package.json
CHANGED
package/src/SmartMapView.tsx
CHANGED
|
@@ -72,9 +72,9 @@ export const SmartMapView = forwardRef<SmartMapViewMethods, SmartMapViewProps>(
|
|
|
72
72
|
latitude,
|
|
73
73
|
longitude,
|
|
74
74
|
zoomLevel,
|
|
75
|
-
bearing
|
|
76
|
-
pitch
|
|
77
|
-
floorIndex
|
|
75
|
+
bearing ?? 0,
|
|
76
|
+
pitch ?? 0,
|
|
77
|
+
floorIndex ?? 0,
|
|
78
78
|
buildingRef,
|
|
79
79
|
]);
|
|
80
80
|
},
|
|
@@ -176,9 +176,9 @@ export const SmartMapView = forwardRef<SmartMapViewMethods, SmartMapViewProps>(
|
|
|
176
176
|
latitude,
|
|
177
177
|
longitude,
|
|
178
178
|
zoomLevel,
|
|
179
|
-
bearing
|
|
180
|
-
pitch
|
|
181
|
-
floorIndex
|
|
179
|
+
bearing ?? 0,
|
|
180
|
+
pitch ?? 0,
|
|
181
|
+
floorIndex ?? 0,
|
|
182
182
|
buildingRef,
|
|
183
183
|
]);
|
|
184
184
|
},
|
package/src/SmartMapView.web.tsx
CHANGED
|
@@ -166,9 +166,9 @@ export const SmartMapView = forwardRef<SmartMapViewMethods, SmartMapViewProps>(
|
|
|
166
166
|
latitude,
|
|
167
167
|
longitude,
|
|
168
168
|
zoomLevel,
|
|
169
|
-
bearing,
|
|
170
|
-
pitch,
|
|
171
|
-
floorIndex,
|
|
169
|
+
bearing ?? 0,
|
|
170
|
+
pitch ?? 0,
|
|
171
|
+
floorIndex ?? 0,
|
|
172
172
|
buildingRef,
|
|
173
173
|
]);
|
|
174
174
|
},
|
|
@@ -236,9 +236,9 @@ export const SmartMapView = forwardRef<SmartMapViewMethods, SmartMapViewProps>(
|
|
|
236
236
|
latitude,
|
|
237
237
|
longitude,
|
|
238
238
|
zoomLevel,
|
|
239
|
-
bearing,
|
|
240
|
-
pitch,
|
|
241
|
-
floorIndex,
|
|
239
|
+
bearing ?? 0,
|
|
240
|
+
pitch ?? 0,
|
|
241
|
+
floorIndex ?? 0,
|
|
242
242
|
buildingRef,
|
|
243
243
|
]);
|
|
244
244
|
},
|