add google satellite tile layer

This commit is contained in:
liamcottle
2024-04-17 22:20:22 +12:00
parent 597866fa83
commit 02b1997891

View File

@ -2037,6 +2037,12 @@
attribution: 'Tiles &copy; <a href="https://developers.arcgis.com/documentation/mapping-apis-and-services/deployment/basemap-attribution/">Esri</a> | Data from <a target="_blank" href="https://meshtastic.org/docs/software/integrations/mqtt/">Meshtastic</a>' attribution: 'Tiles &copy; <a href="https://developers.arcgis.com/documentation/mapping-apis-and-services/deployment/basemap-attribution/">Esri</a> | Data from <a target="_blank" href="https://meshtastic.org/docs/software/integrations/mqtt/">Meshtastic</a>'
}); });
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 &copy; Google | Data from <a target="_blank" href="https://meshtastic.org/docs/software/integrations/mqtt/">Meshtastic</a>'
});
var googleHybridTileLayer = L.tileLayer('https://{s}.google.com/vt/lyrs=s,h&x={x}&y={y}&z={z}', { var googleHybridTileLayer = L.tileLayer('https://{s}.google.com/vt/lyrs=s,h&x={x}&y={y}&z={z}', {
maxZoom: 21, maxZoom: 21,
subdomains: ['mt0', 'mt1', 'mt2', 'mt3'], subdomains: ['mt0', 'mt1', 'mt2', 'mt3'],
@ -2086,6 +2092,7 @@
var tileLayers = { var tileLayers = {
"Map": openStreetMapTileLayer, "Map": openStreetMapTileLayer,
"Satellite": esriWorldImageryTileLayer, "Satellite": esriWorldImageryTileLayer,
"Google Satellite": googleSatelliteTileLayer,
"Google Hybrid": googleHybridTileLayer, "Google Hybrid": googleHybridTileLayer,
}; };