Mappedin JS & React SDK v6.0.1-beta.52

v6.0.1-beta.52

July 21, 2025

:warning: Breaking Changes

  • iconSizeInterpolation has been replaced with iconScale for improved flexibility.
// ❌ Before
mapView.Labels.add(space, 'label', {
	appearance: {
		marker: {
			iconSizeInterpolation: {
				maxZoomLevel: 18,
				minZoomLevel: 17,
				maxScale: 2,
				minScale: 1,
			},
		},
	},
});

// ✅ After
mapView.Labels.add(space, 'label', {
	appearance: {
		marker: {
			iconScale: {
				on: 'zoom-level',
				input: [17, 18],
				output: [1, 2],
			},
		},
	},
});
  • MapView.getMapData() now returns the MapData directly instead of an object containing a single key-value pair.
const mapData = mapView.getMapData();

// ❌ Before
mapData: {
  [string]: MapData,
}

// ✅ After
mapData: MapData
  • The name property across map elements no longer falls back to external ID when empty.
// ❌ Before
spaceWithoutName.externalId === 'id';
spaceWithoutName.name === 'id';

// ✅ After
spaceWithoutName.externalId === 'id';
spaceWithoutName.name === '';

Features

  • Improved performance and memory usage.
  • Improved type inference in MapData.Query.nearest().
  • Added Facade as an option to MapView.animateState().
  • Added an exclude array property to MapData.Query.nearest().
  • Added MapView.options property to return the initialization options passed into show3dMap().
  • Added subtitle property to Floor.
  • Added 'unknown' as a possible type with MapData.getById() which will return the first map element found with that id.
  • Added option to disable token prefetching.
  • Added support for updating Path altitude.
  • Added pitch and bearing to MapView.Camera.getFocusOnTransform().

Fixes

  • Fixed Path color when animation is layered over a visibleThroughGeometry Path.
  • Fixed center property falling back to [0, 0] if a center coordinate is not provided in the data. Center will now attempt to be calculated before falling back.
  • Fixed 2D occlusion on outdoor Floors fighting with basements and lower levels.
  • Fixed behavior when setting a color to an invalid color string.
  • Fixed BlueDot accuracy ring being interactive.
  • Fixed Marker flickering.
  • Fixed crash when updating the state of an invalid geometry.
  • Fixed invalid map Objects being created.
  • Fixed getDirections throwing when given an invalid start and end.
  • Fixed BlueDot receiving position updates from far outside the bounds of the map.
  • Fixed insetPadding.type being required.
  • Fixed unsafe-eval content security policy issues.