aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/core/useMapStyles.js18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/map/core/useMapStyles.js b/src/map/core/useMapStyles.js
index dd4a039c..7e770010 100644
--- a/src/map/core/useMapStyles.js
+++ b/src/map/core/useMapStyles.js
@@ -30,7 +30,8 @@ const styleCustom = ({ tiles, minZoom, maxZoom, attribution }) => {
export default () => {
const t = useTranslation();
- const googleKey = useAttributePreference('googleKey');
+ // RATIONALE: revert to unofficial maps
+ // const googleKey = useAttributePreference('googleKey');
const mapTilerKey = useAttributePreference('mapTilerKey');
const locationIqKey = useAttributePreference('locationIqKey') || 'pk.0f147952a41c555a5b70614039fd148b';
const bingMapsKey = useAttributePreference('bingMapsKey');
@@ -85,34 +86,31 @@ export default () => {
id: 'googleRoad',
title: t('mapGoogleRoad'),
style: styleCustom({
- tiles: [`google://roadmap/{z}/{x}/{y}?key=${googleKey}`],
+ tiles: [0, 1, 2, 3].map((i) => `https://mt${i}.google.com/vt/lyrs=m&hl=en&x={x}&y={y}&z={z}&s=Ga`),
maxZoom: 20,
attribution: '© Google',
}),
- available: Boolean(googleKey),
- attribute: 'googleKey',
+ available: true,
},
{
id: 'googleSatellite',
title: t('mapGoogleSatellite'),
style: styleCustom({
- tiles: [`google://satellite/{z}/{x}/{y}?key=${googleKey}`],
+ tiles: [0, 1, 2, 3].map((i) => `https://mt${i}.google.com/vt/lyrs=s&hl=en&x={x}&y={y}&z={z}&s=Ga`),
maxZoom: 20,
attribution: '© Google',
}),
- available: Boolean(googleKey),
- attribute: 'googleKey',
+ available: true,
},
{
id: 'googleHybrid',
title: t('mapGoogleHybrid'),
style: styleCustom({
- tiles: [`google://satellite/{z}/{x}/{y}?key=${googleKey}&layerType=layerRoadmap`],
+ tiles: [0, 1, 2, 3].map((i) => `https://mt${i}.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}&s=Ga`),
maxZoom: 20,
attribution: '© Google',
}),
- available: Boolean(googleKey),
- attribute: 'googleKey',
+ available: true,
},
{
id: 'mapTilerBasic',