Skip to content

Commit

Permalink
Merge pull request openlayers#264 from pgiraud/osm
Browse files Browse the repository at this point in the history
Use the 3 available sub-domains for OSM by default
  • Loading branch information
Pierre GIRAUD committed Mar 1, 2012
2 parents 726b9de + 45daaf5 commit 6d5544c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/OpenLayers/Layer/OSM.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 6d5544c

Please sign in to comment.