forked from 0x2620/oxjs
fix raster subdomains
This commit is contained in:
parent
6a59ff5193
commit
8dbfcc0ece
1 changed files with 5 additions and 5 deletions
|
|
@ -935,12 +935,11 @@ Ox.Map = function(options, self) {
|
||||||
'raster-tiles': {
|
'raster-tiles': {
|
||||||
'type': 'raster',
|
'type': 'raster',
|
||||||
'tiles': [
|
'tiles': [
|
||||||
// FIXME: use protocol and make use of all subdomains
|
'https://mt0.google.com/vt/lyrs=s&x={x}&y={y}&z={z}',
|
||||||
//'https://{s}.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://mt0.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,
|
'tileSize': 256,
|
||||||
'attribution':
|
'attribution':
|
||||||
'FIXME',
|
'FIXME',
|
||||||
|
|
@ -951,6 +950,7 @@ Ox.Map = function(options, self) {
|
||||||
'id': 'simple-tiles',
|
'id': 'simple-tiles',
|
||||||
'type': 'raster',
|
'type': 'raster',
|
||||||
'source': 'raster-tiles',
|
'source': 'raster-tiles',
|
||||||
|
'roundZoom': true,
|
||||||
'minzoom': 0,
|
'minzoom': 0,
|
||||||
'maxzoom': 22
|
'maxzoom': 22
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue