mechanic-map 0.16.1 → 0.16.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/README.md +4 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Mechanic Map SDK v2 (package version v0.16.
|
|
1
|
+
# Mechanic Map SDK v2 (package version v0.16.2)
|
|
2
2
|
|
|
3
3
|
```js
|
|
4
4
|
// Initialize MechanicMap
|
|
@@ -391,11 +391,6 @@ map.isMultiBuilding();
|
|
|
391
391
|
map.getLevels();
|
|
392
392
|
```
|
|
393
393
|
|
|
394
|
-
### Get Current level
|
|
395
|
-
```js
|
|
396
|
-
map.getCurrentLevel();
|
|
397
|
-
```
|
|
398
|
-
|
|
399
394
|
### Get nodes and paths (for kiosks)
|
|
400
395
|
```js
|
|
401
396
|
map.getNodes();
|
|
@@ -474,7 +469,7 @@ map.startNavigation(sp, autoMode = true, zoomEnabled = true, showPins = true)
|
|
|
474
469
|
|
|
475
470
|
```
|
|
476
471
|
|
|
477
|
-
###
|
|
472
|
+
### Gets navigation data by offset based on current navigation position (for multi-building navigation).
|
|
478
473
|
```js
|
|
479
474
|
map.getNavigationDetails(offset = 0)
|
|
480
475
|
|
|
@@ -482,7 +477,7 @@ map.getNavigationDetails(offset = 0)
|
|
|
482
477
|
// const nextBuildingNavigate = map.getNavigationDetails(1)
|
|
483
478
|
```
|
|
484
479
|
|
|
485
|
-
###
|
|
480
|
+
### Returns the level ID if there is navigation one step before.
|
|
486
481
|
```js
|
|
487
482
|
map.prevLevelId() // undefined / levelId
|
|
488
483
|
```
|
|
@@ -497,7 +492,7 @@ map.hasPrevNavigate()
|
|
|
497
492
|
map.prevNavigate(autoMode = false, zoomEnabled = true, showPins = true)
|
|
498
493
|
```
|
|
499
494
|
|
|
500
|
-
###
|
|
495
|
+
### Returns the building ID if there is navigation one step before (for multiple building).
|
|
501
496
|
```js
|
|
502
497
|
map.prevBuildingId()
|
|
503
498
|
```
|