v6.0.1-beta.52
July 21, 2025
Breaking Changes
iconSizeInterpolationhas been replaced withiconScalefor 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
nameproperty 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
excludearray property toMapData.Query.nearest(). - Added
MapView.optionsproperty to return the initialization options passed intoshow3dMap(). - Added
subtitleproperty to Floor. - Added
'unknown'as a possible type withMapData.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
pitchandbearingtoMapView.Camera.getFocusOnTransform().
Fixes
- Fixed Path color when animation is layered over a
visibleThroughGeometryPath. - Fixed
centerproperty 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.typebeing required. - Fixed
unsafe-evalcontent security policy issues.