mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
fix(mobile): put the CARTO key back on the phone map settings preview too
The third preview with the same shape, and the one that matters most while the crash is live: the phone layout is where someone would go to change the basemap when the desktop tab will not open.
This commit is contained in:
@@ -17,6 +17,7 @@ import {
|
||||
normalizeStyleForProvider,
|
||||
type GlMapProvider,
|
||||
} from '../../../components/Map/glProviders'
|
||||
import { withTileApiKey } from '../../../utils/tileUrl'
|
||||
import MToggle from '../../components/MToggle'
|
||||
import { MSetCard, MSetEyebrow, MSetSelectRow, MSetInput, MSetButton, MSetHint, MSetRow } from './MSettingsUi'
|
||||
import MSetPickerSheet from './MSetPickerSheet'
|
||||
@@ -318,7 +319,9 @@ export default function MSettingsMap() {
|
||||
onMarkerClick: null,
|
||||
onMapClick: null,
|
||||
onMapContextMenu: null,
|
||||
tileUrl: mapTileUrl,
|
||||
// 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,
|
||||
|
||||
Reference in New Issue
Block a user