add google satellite tile layer
This commit is contained in:
@ -2037,6 +2037,12 @@
|
|||||||
attribution: 'Tiles © <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 © <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 © 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,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user