Mappedin JS, React & React Native SDK v6.23.0

Features

  • Added MapObject, LocationProfile, Connection, Area, and Facade as queryable types in Query.nearest, so these can now be searched in both absolute-distance and travel-distance modes.
const results = mapData.Query.nearest(origin, [...mapObjects, ...areas, ...connections], {
    mode: 'absolute-distance',
});
  • Added an INFO log level and made it the default, so the console is quieter out of the box: INFO, WARN, and ERROR messages show while DEBUG output is opt-in. New Logger.info() and Logger.debug() methods were added, and setLoggerLevel now accepts a case-insensitive level name ('debug', 'info', 'warn', 'error', or 'silent') in addition to an E_SDK_LOG_LEVEL value, warning on invalid input instead of silently doing nothing. E_SDK_LOG_LEVEL.LOG and Logger.log() are retained as deprecated aliases of DEBUG.
import { setLoggerLevel } from '@mappedin/mappedin-js';
setLoggerLevel('debug'); // restore verbose logging at runtime
setLoggerLevel('silent'); // silence all SDK logging
  • Added a nested text3d state for controlling floor text visibility, where text3d.visible toggles all floor text, text3d.geometryText.visible toggles labels added through Text3D, and text3d.floorText.visible toggles baked enterprise floor text. Enterprise floor text now reveals through open-to-below voids when a floor above it is focused.
mapView.updateState(floor, { text3d: { floorText: { visible: false } } });

Fixes

  • Fixed an issue where OSM basemap buildings beneath an indoor map could remain visible when panning or zooming after the map loaded; buildings that stream in are now hidden progressively.
  • Fixed an issue where the outdoor basemap could go blank if its access token expired while the map was open; the SDK now refreshes the token and restores the basemap without a page reload.
  • Fixed an issue where the outdoor-style-loaded event could fire repeatedly while panning instead of only when the outdoor style changed.
  • Fixed an issue where lower-floor labels could bleed through an open-to-below void.