Skip to content

Commit

Permalink
Fix style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Sep 16, 2024
1 parent 24cb372 commit 9a34d3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/map/core/useMapStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 9a34d3f

Please sign in to comment.