Use the 3 available sub-domains for OSM by default
This commit is contained in:
@@ -34,7 +34,7 @@ OpenLayers.Layer.OSM = OpenLayers.Class(OpenLayers.Layer.XYZ, {
|
||||
/**
|
||||
* APIProperty: url
|
||||
* {String} The tileset URL scheme. Defaults to
|
||||
* : http://tile.openstreetmap.org/${z}/${x}/${y}.png
|
||||
* : http://[a|b|c].tile.openstreetmap.org/${z}/${x}/${y}.png
|
||||
* (the official OSM tileset) if the second argument to the constructor
|
||||
* is null or undefined. To use another tileset you can have something
|
||||
* like this:
|
||||
@@ -43,7 +43,11 @@ OpenLayers.Layer.OSM = OpenLayers.Class(OpenLayers.Layer.XYZ, {
|
||||
* "http://tah.openstreetmap.org/Tiles/tile/${z}/${x}/${y}.png");
|
||||
* (end)
|
||||
*/
|
||||
url: 'http://tile.openstreetmap.org/${z}/${x}/${y}.png',
|
||||
url: [
|
||||
'http://a.tile.openstreetmap.org/${z}/${x}/${y}.png',
|
||||
'http://b.tile.openstreetmap.org/${z}/${x}/${y}.png',
|
||||
'http://c.tile.openstreetmap.org/${z}/${x}/${y}.png'
|
||||
],
|
||||
|
||||
/**
|
||||
* Property: attribution
|
||||
|
||||
Reference in New Issue
Block a user