From 9a34d3f1454a1fb66f7f24cd049410ccaea752cd Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 16 Sep 2024 15:43:04 -0700 Subject: [PATCH] Fix style issues --- src/map/core/useMapStyles.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/map/core/useMapStyles.js b/src/map/core/useMapStyles.js index d1417132f5..05f402d92a 100644 --- a/src/map/core/useMapStyles.js +++ b/src/map/core/useMapStyles.js @@ -85,7 +85,7 @@ export default () => { id: 'googleRoad', title: t('mapGoogleRoad'), style: styleCustom({ - tiles: Boolean(googleKey) + tiles: googleKey ? [`google://roadmap/{z}/{x}/{y}?key=${googleKey}`] : [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, @@ -98,7 +98,7 @@ export default () => { id: 'googleSatellite', title: t('mapGoogleSatellite'), style: styleCustom({ - tiles: Boolean(googleKey) + tiles: googleKey ? [`google://satellite/{z}/{x}/{y}?key=${googleKey}`] : [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, @@ -111,7 +111,7 @@ export default () => { id: 'googleHybrid', title: t('mapGoogleHybrid'), style: styleCustom({ - tiles: Boolean(googleKey) + tiles: googleKey ? [`google://satellite/{z}/{x}/{y}?key=${googleKey}&layerType=layerRoadmap`] : [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,