@adactive/adsum-wayfindingcontrols-asia
Advanced tools
Comparing version 2.5.6 to 2.5.7
{ | ||
"name": "@adactive/adsum-wayfindingcontrols-asia", | ||
"version": "2.5.6", | ||
"version": "2.5.7", | ||
"description": "Adsum Way Finding Controls Component", | ||
"main": "index.js", | ||
"author": "Erlanda Zakaria <erlandazakaria@gmail.com>", | ||
"license": "UNLISENCED", | ||
"license": "UNLICENSED", | ||
"readmeFilename": "README.md", | ||
@@ -9,0 +9,0 @@ "dependencies": { |
@@ -46,2 +46,3 @@ // @flow | ||
interchangeLabelStyle: object, | ||
reverseFloor: Boolean, | ||
|}; | ||
@@ -85,2 +86,3 @@ | ||
}, | ||
reverseFloor: false, | ||
} | ||
@@ -102,2 +104,3 @@ | ||
onRemovePath, | ||
reverseFloor, | ||
} = this.props; | ||
@@ -142,3 +145,11 @@ | ||
let icDestinationFloorPosition; | ||
if (pathSection[wayfindingState.currentSectionIndex + 1].to.pathNode.ground.id > kioskPlace.id) { | ||
if (reverseFloor) { | ||
if (pathSection[wayfindingState.currentSectionIndex + 1].to.pathNode.ground.id > kioskPlace.id) { | ||
icDestinationFloorPosition = 'Down '; | ||
} else if (pathSection[wayfindingState.currentSectionIndex + 1].to.pathNode.ground.id < kioskPlace.id) { | ||
icDestinationFloorPosition = 'Up '; | ||
} else { | ||
icDestinationFloorPosition = 'Straight '; | ||
} | ||
} else if (pathSection[wayfindingState.currentSectionIndex + 1].to.pathNode.ground.id > kioskPlace.id) { | ||
icDestinationFloorPosition = 'Up '; | ||
@@ -239,3 +250,3 @@ } else if (pathSection[wayfindingState.currentSectionIndex + 1].to.pathNode.ground.id < kioskPlace.id) { | ||
} | ||
if (pathSection && pathSection[wayfindingState.currentSectionIndex] && pathSection[wayfindingState.currentSectionIndex].to){ | ||
if (pathSection && pathSection[wayfindingState.currentSectionIndex] && pathSection[wayfindingState.currentSectionIndex].to) { | ||
awm.objectManager.addLabelOnAdsumLocation(changeFloorLabel, pathSection[wayfindingState.currentSectionIndex].to); | ||
@@ -242,0 +253,0 @@ } |
@@ -19,3 +19,3 @@ // @flow | ||
if (poi && poi.placeId) { | ||
store.dispatch(WayfindingActions.goToPlaceAction(poi.placeId, pmr ? pmr : false)); | ||
store.dispatch(WayfindingActions.goToPlaceAction(poi.placeId, pmr || false)); | ||
} | ||
@@ -22,0 +22,0 @@ return (dispatch) => { |
25523
495