Event that can be used to manage an itinerary.
setItineraryToEntityWithId
Calculate and generate an itinerary to a specific container (containers are objects like table, doors, stairs, shelves etc ...)
Parameters
| Name | type | description |
|---|---|---|
| id_entity | number | Container id target to generate itinerary. |
| id_start | number | (optional) Container id start to generate itinerary. |
| hideFloors | boolean | (optional) Hides all floors that are not in the itinerary. |
Result
| Name | type | description |
|---|---|---|
| points | Vector3[[] | The itinerary |
| floor | number | Target floor |
| distanceMeter | number | Itinerary distance in meters |
Example
FnoMapManager.sendEvent('setItineraryToEntityWithId', { "id_entity":321, "id_start": 456, "hideFloors": true}, (data) = > { console.log("itinerary:", data)});clearItinerary
Disable and remove current itinerary
Parameters
No parameter
Result
No result
Example
FnoMapManager.sendEvent('clearItinerary');setPathColor
Change itinerary path color
Parameters
| Name | type | description |
|---|---|---|
| color | string | color in hexadecimal value |
Result
No result
Example
FnoMapManager.sendEvent('setPathColor', {<params>}, (data) => {color:"#FF0000"});setMoveFpsToTarget
Start animation from terminal (or current user position) to destination. An itinerary had to be shown to enable this feature (setItineraryToEntityWithId) called before.
Parameters
| Name | type | description |
|---|---|---|
| state | boolean | True for enable or false for disable FPS mode |
Result
No result
Example
FnoMapManager.sendEvent('setMoveFpsToTarget', {state: true});###