Mappedin JS & React SDK v6.0.0

This is the first official release of Mappedin JS v6 and React SDK v6. This version introduces the last breaking changes for both SDKs as the API becomes stable.

:warning: Breaking Changes

  • MapView.getState() and MapView.updateState() no longer accept a string id. Instead, always pass the instance of the map element.
// ❌ Before
const space = mapView.getByType('space')[0];
const state = mapView.getState(space.id); // No longer supported
mapView.updateState(space.id, { opacity: 0.5 }); // No longer supported

// ✅ After
const space = mapView.getByType('space')[0];
const state = mapView.getState(space);
mapView.updateState(space, { opacity: 0.5 });

Features

  • Added opacity property to LabelAppearance.
  • Added areas to the mapView.on('click') event.

Fixes

  • Fixed an issue with Areas rendering on all floors in multi-floor view.
  • Fixed a regression causing rank: 'always-visible' Labels and Markers to still fall back to the pin appearance.