Mappedin JS, React & React Native SDK v6.28.0

Features

  • Added experimental showAllFloorsIncludedInNavigation to multiFloorView. When enabled, every floor the navigation path traverses is rendered, including floors above the current floor on a descending route, so the path and its connection tubes no longer disappear. The option defaults to false, so existing multi-floor view behaviour is unchanged.
const mapView = await show3dMap(el, mapData, {
    multiFloorView: {
        enabled: true,
        showAllFloorsIncludedInNavigation: true,
    },
});
  • Added slopeEnabled, slopeBearing, and slopeFactor to updateState for Spaces, which tilt the Space’s top face into a flat ramp along a compass bearing while the floor stays flat. slopeEnabled must be true for the slope to apply. slopeBearing is in degrees (0 is north, increasing clockwise). slopeFactor ranges from -1 to 1, where 0 is flat and 1 slopes down in the bearing direction.
mapView.updateState(space, {
    height: 6,
    slopeEnabled: true,
    slopeBearing: 350,
    slopeFactor: 1,
});