diff options
author | Iván Ávalos <avalos@disroot.org> | 2021-12-08 00:41:16 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2021-12-08 00:41:16 -0600 |
commit | 6353b5e144fd21ef988abdf04c97e63689f58da4 (patch) | |
tree | c8689a1635f37ab555fc36c7b04b3adbc7eb1b0b /modern/src/map/mapStyles.js | |
parent | fdacbe991e0ccea66ab684a2e119607ad95299ee (diff) | |
download | etbsa-traccar-web-6353b5e144fd21ef988abdf04c97e63689f58da4.tar.gz etbsa-traccar-web-6353b5e144fd21ef988abdf04c97e63689f58da4.tar.bz2 etbsa-traccar-web-6353b5e144fd21ef988abdf04c97e63689f58da4.zip |
Added Google Maps layers
Diffstat (limited to 'modern/src/map/mapStyles.js')
-rw-r--r-- | modern/src/map/mapStyles.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modern/src/map/mapStyles.js b/modern/src/map/mapStyles.js index 86813a1..a6e84fd 100644 --- a/modern/src/map/mapStyles.js +++ b/modern/src/map/mapStyles.js @@ -53,3 +53,11 @@ export const styleMapbox = (style) => `mapbox://styles/mapbox/${style}`; export const styleMapTiler = (style, key) => `https://api.maptiler.com/maps/${style}/style.json?key=${key}`; export const styleLocationIq = (style, key) => `https://tiles.locationiq.com/v3/${style}/vector.json?key=${key}`; + +// Google Maps + +export const styleGmapsStreets = () => styleCustom('https://mt0.google.com/vt/lyrs=m&hl=en&x={x}&y={y}&z={z}&s=Ga', ''); + +export const styleGmapsSatellite = () => styleCustom('https://mt0.google.com/vt/lyrs=s&hl=en&x={x}&y={y}&z={z}&s=Ga', ''); + +export const styleGmapsHybrid = () => styleCustom('https://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z={z}&s=Ga', ''); |