setMapboxStyle(e.target.value)}
placeholder={defaultStyleForProvider(provider)}
/>
{provider === 'maplibre-gl' ? t('settings.mapOpenFreeMapStyleHint') : t('settings.mapStyleHint')}
{provider === 'mapbox-gl' && (
}
/>
}
/>
{t('settings.mapTipLabel')} {t('settings.mapTip')}
)}
>
)}
{glPreview ? (
/* See MapSettingsTab: the preview gets its own net. */
}>
}>
) : (
// eslint-disable-next-line @typescript-eslint/no-explicit-any
React.createElement(MapView as any, {
places: previewPlaces,
dayPlaces: [],
route: null,
routeSegments: null,
selectedPlaceId: null,
onMarkerClick: null,
onMapClick: null,
onMapContextMenu: null,
// As on the desktop tab: the field holds what is being edited, so the
// key goes back on before the preview resolves the template.
tileUrl: withTileApiKey(mapTileUrl, cartoKey),
fitKey: null,
dayOrderMap: [],
leftWidth: 0,
rightWidth: 0,
hasInspector: false,
})
)}
{webgl2Missing && {t('map.webgl2.fallback')}}
{t('settings.saveMap')}
setPresetOpen(false)}
title={t('settings.mapTemplate')}
value={mapTileUrl}
onSelect={setMapTileUrl}
options={tilePresets.map((p) => ({ value: p.url, label: p.name }))}
/>
setStyleOpen(false)}
title={t('settings.mapStyle')}
value={mapboxStyle}
onSelect={setMapboxStyle}
options={presets.map((p) => ({
value: p.url,
label: (
{p.name}
{(p.tags || []).map((tag) => (
{tag}
))}
),
}))}
/>