From 02b19978912145fd6244b04cdc281b33bb4e9193 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Wed, 17 Apr 2024 22:20:22 +1200 Subject: [PATCH] add google satellite tile layer --- src/public/index.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/public/index.html b/src/public/index.html index 4cfb7bc..0ee7e2d 100644 --- a/src/public/index.html +++ b/src/public/index.html @@ -2037,6 +2037,12 @@ attribution: 'Tiles © Esri | Data from Meshtastic' }); + var googleSatelliteTileLayer = L.tileLayer('https://{s}.google.com/vt/lyrs=s&x={x}&y={y}&z={z}', { + maxZoom: 21, + subdomains: ['mt0', 'mt1', 'mt2', 'mt3'], + attribution: 'Tiles © Google | Data from Meshtastic' + }); + var googleHybridTileLayer = L.tileLayer('https://{s}.google.com/vt/lyrs=s,h&x={x}&y={y}&z={z}', { maxZoom: 21, subdomains: ['mt0', 'mt1', 'mt2', 'mt3'], @@ -2086,6 +2092,7 @@ var tileLayers = { "Map": openStreetMapTileLayer, "Satellite": esriWorldImageryTileLayer, + "Google Satellite": googleSatelliteTileLayer, "Google Hybrid": googleHybridTileLayer, };