Hello,
My company is in process of obtaining MappedIn license and it is something work in progress. However, I am playing around with SDK.
Currently I am rendering the map inside an iframe.
For trial purposes , during development phase, our application’s package.json referred to version “@mappedin/mappedin-js”: “6.0.1-alpha.25”
I found that the most recent version 6.0.1-alpha.30 seems to have changed significantly within a few months.
Eg: import {TCollisionRankingTier} from “@mappedin/mappedin-js/maker/src/map-view-interface”; worked in 6.0.1-alpha.25 but does not in 6.0.1-alpha.30
Also is the BlueDot feature not available anymore with v6?
Last but not the least, below is the sample data from the trial demo map - 660c0c3aae0596d87766f2da
The data set denotes the from space and to space.
Arrival Space object {“id”:“s_dcfc349a72e1f75d”,“name”:“Mechanical”,“type”:“room”,“floor”:“m_ea9b3472bb780823”,“center”:{“latitude”:42.986379259279005,“longitude”:-81.28561163055646,“floor”:“m_ea9b3472bb780823”}}
Destination space object
{“id”:“s_31e9348fcc74e999”,“name”:“Conference Room”,“type”:“room”,“floor”:“m_ea9b3472bb780823”,“center”:{“latitude”:42.98655780492979,“longitude”:-81.28489653391765,“floor”:“m_ea9b3472bb780823”}}
However, the below line of code always seem to render as undefined when using trial demo maps.
const directions = mapView.getDirections(space, arrive);
directions always comes as undefined and subsequent action of drawing a path fails.
if(directions){
mapView.Navigation.draw(directions, {
pathOptions: {
nearRadius: 1,
farRadius: 1,
}});
} else {
console.log('No directions found');
}
What seems to be the issue since that the data object has the necessary data ?
Any pointers will be appreaciated greatly.