Skip to content

Commit e935b42

Browse files
Merge pull request #672 from MapsPeople/feature/matb/make_point_none_events_for_attributes
Add kiosk mode styling to MapboxMap and integrate kiosk context in Ma…
2 parents 22babd3 + aa73e2e commit e935b42

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/map-template/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.96.22] - 2026-04-01
9+
10+
### Fixed
11+
12+
- Made Mapbox and OpenStreetMap attributions not clickable in kiosk view.
13+
814
## [1.96.21] - 2026-03-31
915

1016
### Fixed

packages/map-template/src/components/MIMap/MapboxMap/MapboxMap.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,11 @@ $desktop-breakpoint: 992px;
3636
}
3737
}
3838

39+
}
40+
41+
.mapsindoors-map--kiosk {
42+
.mapboxgl-ctrl-logo,
43+
.mapboxgl-ctrl-attrib {
44+
pointer-events: none;
45+
}
3946
}

packages/map-template/src/components/MapTemplate/MapTemplate.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ import { GeminiProvider } from '../../providers/GeminiProvider';
6767
import ChatButton from '../ChatButton/ChatButton';
6868
import mapTypeState from '../../atoms/mapTypeState.js';
6969
import { mapTypes } from '../../constants/mapTypes.js';
70+
import { useIsKioskContext } from '../../hooks/useIsKioskContext.js';
7071

7172
// Define the Custom Elements from our components package.
7273
defineCustomElements();
@@ -225,6 +226,7 @@ function MapTemplate({ apiKey, gmApiKey, mapboxAccessToken, venue, locationId, p
225226
const setErrorMessage = useSetRecoilState(notificationMessageState);
226227

227228
const mapType = useRecoilValue(mapTypeState);
229+
const isKiosk = useIsKioskContext();
228230

229231
/**
230232
* Ensure that MapsIndoors Web SDK is available.
@@ -816,6 +818,7 @@ function MapTemplate({ apiKey, gmApiKey, mapboxAccessToken, venue, locationId, p
816818
${currentAppView === appStates.DIRECTIONS ? 'mapsindoors-map--hide-elements' : 'mapsindoors-map--show-elements'}
817819
${(venuesInSolution.length > 1 && showVenueSelector) ? '' : 'mapsindoors-map--hide-venue-selector'}
818820
${showPositionControl ? 'mapsindoors-map--show-my-position' : 'mapsindoors-map--hide-my-position'}
821+
${isKiosk ? 'mapsindoors-map--kiosk' : ''}
819822
${(currentAppView === appStates.CHAT && !isDesktop) ? 'mapsindoors-map--hide-map-controls' : ''}`}>
820823
<Notification />
821824
{!isMapReady && <SplashScreen />}

0 commit comments

Comments
 (0)