mirror of
https://github.com/traccar/traccar-web.git
synced 2025-01-07 03:26:42 +08:00
Fix style issues
This commit is contained in:
parent
24cb372ca7
commit
9a34d3f145
@ -85,7 +85,7 @@ export default () => {
|
|||||||
id: 'googleRoad',
|
id: 'googleRoad',
|
||||||
title: t('mapGoogleRoad'),
|
title: t('mapGoogleRoad'),
|
||||||
style: styleCustom({
|
style: styleCustom({
|
||||||
tiles: Boolean(googleKey)
|
tiles: googleKey
|
||||||
? [`google://roadmap/{z}/{x}/{y}?key=${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`),
|
: [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,
|
maxZoom: 20,
|
||||||
@ -98,7 +98,7 @@ export default () => {
|
|||||||
id: 'googleSatellite',
|
id: 'googleSatellite',
|
||||||
title: t('mapGoogleSatellite'),
|
title: t('mapGoogleSatellite'),
|
||||||
style: styleCustom({
|
style: styleCustom({
|
||||||
tiles: Boolean(googleKey)
|
tiles: googleKey
|
||||||
? [`google://satellite/{z}/{x}/{y}?key=${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`),
|
: [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,
|
maxZoom: 20,
|
||||||
@ -111,7 +111,7 @@ export default () => {
|
|||||||
id: 'googleHybrid',
|
id: 'googleHybrid',
|
||||||
title: t('mapGoogleHybrid'),
|
title: t('mapGoogleHybrid'),
|
||||||
style: styleCustom({
|
style: styleCustom({
|
||||||
tiles: Boolean(googleKey)
|
tiles: googleKey
|
||||||
? [`google://satellite/{z}/{x}/{y}?key=${googleKey}&layerType=layerRoadmap`]
|
? [`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`),
|
: [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,
|
maxZoom: 20,
|
||||||
|
Loading…
Reference in New Issue
Block a user