diff --git a/package-lock.json b/package-lock.json index dae02541a..7e0c44110 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25841,7 +25841,7 @@ }, "packages/map-template": { "name": "@mapsindoors/map-template", - "version": "1.96.20", + "version": "1.96.21", "dependencies": { "@mapsindoors/components": "*", "@mapsindoors/css": "^3.0.0", diff --git a/packages/map-template/CHANGELOG.md b/packages/map-template/CHANGELOG.md index e7c9ffee2..ef23e528b 100644 --- a/packages/map-template/CHANGELOG.md +++ b/packages/map-template/CHANGELOG.md @@ -5,6 +5,12 @@ 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.96.22] - 2026-04-01 + +### Fixed + +- Made Mapbox and OpenStreetMap attributions not clickable in kiosk view. + ## [1.96.21] - 2026-03-31 ### Fixed diff --git a/packages/map-template/src/components/MIMap/MapboxMap/MapboxMap.scss b/packages/map-template/src/components/MIMap/MapboxMap/MapboxMap.scss index 5f566b8f9..a0ef6679b 100644 --- a/packages/map-template/src/components/MIMap/MapboxMap/MapboxMap.scss +++ b/packages/map-template/src/components/MIMap/MapboxMap/MapboxMap.scss @@ -36,4 +36,11 @@ $desktop-breakpoint: 992px; } } +} + +.mapsindoors-map--kiosk { + .mapboxgl-ctrl-logo, + .mapboxgl-ctrl-attrib { + pointer-events: none; + } } \ No newline at end of file diff --git a/packages/map-template/src/components/MapTemplate/MapTemplate.jsx b/packages/map-template/src/components/MapTemplate/MapTemplate.jsx index 0e4c066e3..1db075dbe 100644 --- a/packages/map-template/src/components/MapTemplate/MapTemplate.jsx +++ b/packages/map-template/src/components/MapTemplate/MapTemplate.jsx @@ -67,6 +67,7 @@ import { GeminiProvider } from '../../providers/GeminiProvider'; import ChatButton from '../ChatButton/ChatButton'; import mapTypeState from '../../atoms/mapTypeState.js'; import { mapTypes } from '../../constants/mapTypes.js'; +import { useIsKioskContext } from '../../hooks/useIsKioskContext.js'; // Define the Custom Elements from our components package. defineCustomElements(); @@ -225,6 +226,7 @@ function MapTemplate({ apiKey, gmApiKey, mapboxAccessToken, venue, locationId, p const setErrorMessage = useSetRecoilState(notificationMessageState); const mapType = useRecoilValue(mapTypeState); + const isKiosk = useIsKioskContext(); /** * Ensure that MapsIndoors Web SDK is available. @@ -816,6 +818,7 @@ function MapTemplate({ apiKey, gmApiKey, mapboxAccessToken, venue, locationId, p ${currentAppView === appStates.DIRECTIONS ? 'mapsindoors-map--hide-elements' : 'mapsindoors-map--show-elements'} ${(venuesInSolution.length > 1 && showVenueSelector) ? '' : 'mapsindoors-map--hide-venue-selector'} ${showPositionControl ? 'mapsindoors-map--show-my-position' : 'mapsindoors-map--hide-my-position'} + ${isKiosk ? 'mapsindoors-map--kiosk' : ''} ${(currentAppView === appStates.CHAT && !isDesktop) ? 'mapsindoors-map--hide-map-controls' : ''}`}> {!isMapReady && }