Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion packages/map-template/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.97.0] - 2026-03-23
## [1.96.15] - 2026-03-24

### Fixed

- States when location is both highlighted and selected.

## [1.96.14] - 2026-03-23

### Added

Expand Down
14 changes: 13 additions & 1 deletion packages/map-template/src/components/MapTemplate/MapTemplate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,19 @@ function MapTemplate({ apiKey, gmApiKey, mapboxAccessToken, venue, locationId, p

if (currentLocation && currentLocation.id !== kioskOriginLocationId) {
if (mapsIndoorsInstance?.selectLocation) {
mapsIndoorsInstance.selectLocation(currentLocation);

// On selection, unhighlight current locations if it is highlighted.
if (mapsIndoorsInstance?.getHighlight?.()?.length > 0) {
mapsIndoorsInstance.highlight([]);
}

// When Location is selected from a List, wait until the highlight is cleared before selecting the location.
// TODO: This is a workaround to ensure the highlight is cleared before selecting the location.
setTimeout(() => {
if (mapsIndoorsInstance?.getHighlight?.()?.length === 0) {
mapsIndoorsInstance.selectLocation(currentLocation);
}
}, 500);
}
} else {
if (mapsIndoorsInstance?.deselectLocation) {
Expand Down
Loading