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

**URL:** <https://community.mappedin.com/t/mappedin-js-react-sdk-v6-0-1-beta-52/392>\
**Category:** News & Announcements\
**Tags:** web, react\
**Created:** [July 21, 2025, 7:05pm UTC](https://community.mappedin.com/t/mappedin-js-react-sdk-v6-0-1-beta-52/392 "2025-07-21T19:05:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zach](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.mappedin.com/zach/32/70_2.png) [@Zach](https://community.mappedin.com/u/Zach)\
**Post date:** [July 21, 2025, 7:05pm UTC](https://community.mappedin.com/t/mappedin-js-react-sdk-v6-0-1-beta-52/392/1 "2025-07-21T19:05:13Z")

</div>

# v6.0.1-beta.52

_July 21, 2025_

## ⚠ Breaking Changes

- `iconSizeInterpolation` has been replaced with `iconScale` for improved flexibility.

```javascript
// ❌ 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.

```ts
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.

```ts
// ❌ 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.
