@mappedin/react-native-sdk 5.0.0-beta.8 → 5.0.0-beta.9
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 +7 -11
- package/dist/index.d.ts +575 -1021
- package/dist/index.js +201 -201
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -173,7 +173,7 @@ const App = () => {
|
|
|
173
173
|
ref={mapView}
|
|
174
174
|
options={options}
|
|
175
175
|
onFirstMapLoaded={() => {
|
|
176
|
-
mapView.current!.Camera.set({
|
|
176
|
+
mapView.current!.Camera.set({ rotation: 90 });
|
|
177
177
|
}}
|
|
178
178
|
/>
|
|
179
179
|
);
|
|
@@ -213,10 +213,9 @@ const App = () => {
|
|
|
213
213
|
mapView.current.clearAllPolygonColors();
|
|
214
214
|
mapView.current.setPolygonColor(polygon, 'red');
|
|
215
215
|
// lets wait for the focusOn to complete
|
|
216
|
-
await mapView.current.Camera.focusOn({
|
|
217
|
-
polygons: [polygon]
|
|
218
|
-
}
|
|
219
|
-
});
|
|
216
|
+
await mapView.current.Camera.focusOn({
|
|
217
|
+
polygons: [polygon]
|
|
218
|
+
});
|
|
220
219
|
console.log('success!');
|
|
221
220
|
}}
|
|
222
221
|
/>
|
|
@@ -378,9 +377,7 @@ const App = () => {
|
|
|
378
377
|
await mapView.current?.Journey.draw(directions);
|
|
379
378
|
// focus on the path
|
|
380
379
|
mapView.current?.Camera.focusOn({
|
|
381
|
-
|
|
382
|
-
nodes: directions.path,
|
|
383
|
-
},
|
|
380
|
+
nodes: directions.path
|
|
384
381
|
});
|
|
385
382
|
} catch (e) {
|
|
386
383
|
console.error(e);
|
|
@@ -610,9 +607,8 @@ const App = () => {
|
|
|
610
607
|
// draw path and connections on map
|
|
611
608
|
await controller.current?.Journey.draw(directions);
|
|
612
609
|
// focus on the path
|
|
613
|
-
controller.current?.Camera.focusOn({
|
|
614
|
-
nodes: directions.path
|
|
615
|
-
}
|
|
610
|
+
controller.current?.Camera.focusOn({
|
|
611
|
+
nodes: directions.path
|
|
616
612
|
});
|
|
617
613
|
} catch (e) {
|
|
618
614
|
console.error(e);
|