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.
Breaking Changes
MapView.getState()andMapView.updateState()no longer accept astringid. 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
opacityproperty toLabelAppearance. - Added
areasto themapView.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 andMarkers to still fall back to the pin appearance.