fix(settings): booking route labels default to off

The map endpoint labels only render when the user explicitly enables them;
an unset preference now means hidden, matching the calmer default the
transit paths brought to the map.
This commit is contained in:
Maurice
2026-07-02 23:50:11 +02:00
committed by Maurice
parent 440bb8497f
commit 8ffdb9e153
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -214,7 +214,7 @@ export function MapViewGL({
const mapboxToken = useSettingsStore(s => s.settings.mapbox_access_token || '')
const mapbox3d = useSettingsStore(s => s.settings.mapbox_3d_enabled !== false)
const mapboxQuality = useSettingsStore(s => s.settings.mapbox_quality_mode === true)
const showEndpointLabels = useSettingsStore(s => s.settings.map_booking_labels) !== false
const showEndpointLabels = useSettingsStore(s => s.settings.map_booking_labels) === true
const mapLang = useSettingsStore(s => s.settings.language)
const isMapLibre = glProvider === 'maplibre-gl'
const gl = (isMapLibre ? maplibregl : mapboxgl) as any
@@ -351,7 +351,7 @@ export default function ReservationOverlay({ reservations, showConnections, show
useMapEvents({
zoomend: () => setZoom(map.getZoom()),
})
const showEndpointLabels = useSettingsStore(s => s.settings.map_booking_labels) !== false
const showEndpointLabels = useSettingsStore(s => s.settings.map_booking_labels) === true
const items = useMemo<TransportItem[]>(() => {
const out: TransportItem[] = []