v6.20.0
June 3, 2026
Features
- Added
hoverColorsupport toShapes.add(),updateState(), andgetState(), allowing each interactiveShapeto use a custom hover color instead of the global default.
const shape = mapView.Shapes.add(geometry, {
color: "red",
hoverColor: "blue",
interactive: true,
});
mapView.updateState(shape, { hoverColor: "green" });
const { hoverColor } = mapView.getState(shape);
- Added the
layoutIdoption togetMapData(), which can be set to'draft'to load unpublished map data. Requires an Enterprise API key.
Fixes
- Fixed an issue where
hoverevents would not fire for interactiveShapes. - Fixed an issue where
Labels andMarkers could become misaligned with their geometry after moving the browser window between displays with different pixel ratios or returning to a backgrounded tab. - Fixed an issue where
Labels andMarkers could intermittently detach from their geometry in outdoor maps. - Fixed an issue where
Labels andMarkers could detach from their geometry after resizing the map on high-resolution displays. - Fixed an issue where
Labels could take several seconds to fade in while panning the camera or switching floors. - Fixed an issue where hidden image overlays could prevent nearby
Labels from appearing at near top-down camera angles. - Fixed an issue where some polygons with holes could render with their holes incorrectly filled in.
- Fixed an issue where the basement could be hidden beneath open-to-below areas on ground floors.
- Fixed an issue where the outdoor camera could snap back to its previous position after being moved directly through
mapView.Outdoor.map, and whereCameragetters could report stale values in outdoor maps.