fix raster subdomains

This commit is contained in:
j 2025-08-06 19:30:08 +02:00
commit 8dbfcc0ece

View file

@ -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
}