From 8dbfcc0ecec4af0b3f7cbfba4b91f1ee334864fe Mon Sep 17 00:00:00 2001 From: j Date: Wed, 6 Aug 2025 19:30:08 +0200 Subject: [PATCH] fix raster subdomains --- source/UI/js/Map/Map.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/UI/js/Map/Map.js b/source/UI/js/Map/Map.js index 4a551da4..031b94ae 100644 --- a/source/UI/js/Map/Map.js +++ b/source/UI/js/Map/Map.js @@ -935,12 +935,11 @@ Ox.Map = function(options, self) { 'raster-tiles': { 'type': 'raster', 'tiles': [ - // FIXME: use protocol and make use of all subdomains - //'https://{s}.google.com/vt/lyrs=s&x={x}&y={y}&z={z}' - 'https://mt0.google.com/vt/lyrs=s&x={x}&y={y}&z={z}' - + 'https://mt0.google.com/vt/lyrs=s&x={x}&y={y}&z={z}', + 'https://mt1.google.com/vt/lyrs=s&x={x}&y={y}&z={z}', + 'https://mt2.google.com/vt/lyrs=s&x={x}&y={y}&z={z}', + 'https://mt3.google.com/vt/lyrs=s&x={x}&y={y}&z={z}', ], - 'subdomains':['mt0','mt1','mt2','mt3'], 'tileSize': 256, 'attribution': 'FIXME', @@ -951,6 +950,7 @@ Ox.Map = function(options, self) { 'id': 'simple-tiles', 'type': 'raster', 'source': 'raster-tiles', + 'roundZoom': true, 'minzoom': 0, 'maxzoom': 22 }