UNPKG

atriusmaps-node-sdk

Version:

This project provides an API to Atrius Personal Wayfinder maps within a Node environment. See the README.md for more information

2 lines (1 loc) 1.18 kB
const e={navFrom:"online/getDirectionsFromTo",navTo:"online/getDirectionsFromTo",waypoints:"online/getDirectionsFromTo",accessible:"online/getDirectionsFromTo",showNav:"online/getDirectionsFromTo",poiId:["online/getDirectionsFromTo","online/poiView"],vid:"venueDataLoader",stage:"venueDataLoader",contentStage:"venueDataLoader",accountId:"venueDataLoader",search:"online/headerOnline",ho:["online/getDirectionsFromTo","analytics2"],home:"online/homeView",zoom:"mapRenderer",pitch:"mapRenderer",bearing:"mapRenderer",lat:"mapRenderer",lng:"mapRenderer",radius:"mapRenderer",buildingId:"mapRenderer",floorId:"mapRenderer",visualTest:"mapRenderer",refInstallId:"analytics2",disableZoomToExplorePopup:"levelIndicator"};function n(n,o,r=!1){if(o.has("lldebug"))try{const e=JSON.parse(o.get("lldebug")??"null");n.debug=null===e?{}:e}catch{n.debug=!0}return Object.keys(e).forEach(i=>{if(!o.has(i))return;const a=e[i];(Array.isArray(a)?a:[a]).forEach(e=>{let a=n.plugins[e];!a&&r&&(a=n.plugins[e]={}),a&&(a.deepLinkProps={...a.deepLinkProps,[i]:o.get(i)})})}),o.has("poiId")&&o.has("showNav")&&delete n.plugins["online/poiView"]?.deepLinkProps?.poiId,n}export{n as setDeepLinksForParms};