Mappedin JS
Features
- Added
Navigation.markersto expose the navigation markers drawn for a route (departure and destination pins plus a marker at each connection), so they can be controlled withupdateStatethe same way as other map objects. Each entry is aTNavigationMarker({ marker, type }), wheretypeis aTNavigationMarkerTypeof'departure','destination', or'connection'. This makes it possible to hide navigation markers that are not on the current floor.
for (const { marker } of mapView.Navigation.markers) {
const onCurrentFloor = marker.coordinate.floorId === mapView.currentFloor?.id;
mapView.updateState(marker, { enabled: onCurrentFloor });
}
- Added
interactiveto thePathstate, so it can now be read withgetState()and toggled withupdateState()in addition to being set when thePathis created. Previously it could only be set viaPaths.add().
const path = mapView.Paths.add(coordinates, { interactive: true });
const { interactive } = mapView.getState(path); // true
mapView.updateState(path, { interactive: false });
Performance
- Improved rendering performance during multi-floor navigation by no longer drawing floor geometry that is hidden beneath an opaque floor.
Fixes
- Fixed a crash in
Navigation.draw()andNavigation.drawSync()when drawing directions between two overlappingSpaces that share a navigation node. Drawing such a zero-length route is now a safe no-op with a warning instead of throwing. - Fixed an issue where the
Promisereturned byCamera.focusOn()andCamera.animateTo()would never resolve when the animation was cancelled, such as by a mouse-wheel zoom or a call toCamera.cancelAnimation(). - Fixed an issue where the
geometry-in-focusevent would fire on every camera movement even when the set of focused geometry had not changed. - Fixed an issue where adding more than 100
Models that share the same GLB URL on a single floor would break tracking of the first 100, causing them to become untracked and removing others to clear the entire batch. - Fixed an issue where
Space.centerwas inaccurate for maps loaded from MVFv3 data. Centers are now calculated by area centroid to match maps loaded from MVFv2 data. - Fixed an issue where Maker maps hydrated without credentials could be misclassified as enterprise maps, producing longer, unsmoothed directions.
- Fixed an issue where
PathSegmentproperties such asisConnectionSegmentanddistancewere lost when aPathwas serialized.
Mappedin SDK for React Native
- Upgraded
@mappedin/mappedin-jsto v6.22.0.
Fixes
- Fixed an issue where the SDK could fail to load on Hermes versions older than 0.74 by adding an
atobpolyfill.