Skip to content

Commit 17b3d31

Browse files
committed
Change default map layer
1 parent 2901b7f commit 17b3d31

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/map/core/MapView.jsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ const MapView = ({ children }) => {
7878
const mapStyles = useMapStyles();
7979
const activeMapStyles = useAttributePreference(
8080
'activeMapStyles',
81-
'locationIqStreets,locationIqDark,openFreeMap',
81+
'openFreeMap,locationIqStreets,locationIqDark',
8282
);
8383
const [selectedStyleId, setSelectedStyleId] = usePersistedState(
8484
'selectedMapStyle',
85-
usePreference('map', 'locationIqStreets'),
85+
usePreference('map', 'openFreeMap'),
8686
);
8787
const maxZoom = useAttributePreference('web.maxZoom');
8888

‎src/settings/ServerPage.jsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const ServerPage = () => {
9191
<InputLabel>{t('mapDefault')}</InputLabel>
9292
<Select
9393
label={t('mapDefault')}
94-
value={item.map || 'locationIqStreets'}
94+
value={item.map || 'openFreeMap'}
9595
onChange={(e) => setItem({ ...item, map: e.target.value })}
9696
>
9797
{mapStyles

‎src/settings/UserPage.jsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ const UserPage = () => {
203203
<InputLabel>{t('mapDefault')}</InputLabel>
204204
<Select
205205
label={t('mapDefault')}
206-
value={item.map || 'locationIqStreets'}
206+
value={item.map || 'openFreeMap'}
207207
onChange={(e) => setItem({ ...item, map: e.target.value })}
208208
>
209209
{mapStyles

0 commit comments

Comments
 (0)