4 OpenLayers.Util.OSM = {};
8 * Class: OpenLayers.Layer.OSM.Mapnik
11 * - <OpenLayers.Layer.OSM>
13 OpenLayers.Layer.OSM.Mapnik = OpenLayers.Class(OpenLayers.Layer.OSM, {
15 * Constructor: OpenLayers.Layer.OSM.Mapnik
19 * options - {Object} Hashtable of extra options to tag onto the layer
21 initialize: function(name, options) {
23 "//a.tile.openstreetmap.org/${z}/${x}/${y}.png",
24 "//b.tile.openstreetmap.org/${z}/${x}/${y}.png",
25 "//c.tile.openstreetmap.org/${z}/${x}/${y}.png"
27 options = OpenLayers.Util.extend({ numZoomLevels: 19, buffer: 0,
28 attribution : '© <a target="_parent" href="http://www.openstreetmap.org">OpenStreetMap</a> and contributors, under an <a target="_parent" href="http://www.openstreetmap.org/copyright">open license</a>' }, options);
29 var newArguments = [name, url, options];
30 OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments);
33 CLASS_NAME: "OpenLayers.Layer.OSM.Mapnik"
37 * Class: OpenLayers.Layer.OSM.MapQuestOpen
40 * - <OpenLayers.Layer.OSM>
42 OpenLayers.Layer.OSM.MapQuestOpen = OpenLayers.Class(OpenLayers.Layer.OSM, {
44 * Constructor: OpenLayers.Layer.OSM.MapQuestOpen
48 * options - {Object} Hashtable of extra options to tag onto the layer
50 initialize: function(name, options) {
52 "http://otile1.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.png",
53 "http://otile2.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.png",
54 "http://otile3.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.png",
55 "http://otile4.mqcdn.com/tiles/1.0.0/osm/${z}/${x}/${y}.png"
57 options = OpenLayers.Util.extend({ numZoomLevels: 19, buffer: 0 }, options);
58 var newArguments = [name, url, options];
59 OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments);
62 CLASS_NAME: "OpenLayers.Layer.OSM.MapQuestOpen"
66 * Class: OpenLayers.Layer.OSM.CycleMap
69 * - <OpenLayers.Layer.OSM>
71 OpenLayers.Layer.OSM.CycleMap = OpenLayers.Class(OpenLayers.Layer.OSM, {
73 * Constructor: OpenLayers.Layer.OSM.CycleMap
77 * options - {Object} Hashtable of extra options to tag onto the layer
79 initialize: function(name, options) {
81 "http://a.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png",
82 "http://b.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png",
83 "http://c.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png"
85 options = OpenLayers.Util.extend({ numZoomLevels: 19, buffer: 0 }, options);
86 var newArguments = [name, url, options];
87 OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments);
90 CLASS_NAME: "OpenLayers.Layer.OSM.CycleMap"