2 * Class: OpenLayers.Layer.OSM.Mapnik
5 * - <OpenLayers.Layer.OSM>
7 OpenLayers.Layer.OSM.Mapnik = OpenLayers.Class(OpenLayers.Layer.OSM, {
9 * Constructor: OpenLayers.Layer.OSM.Mapnik
13 * options - {Object} Hashtable of extra options to tag onto the layer
15 initialize: function(name, options) {
17 "https://a.tile.openstreetmap.org/${z}/${x}/${y}.png",
18 "https://b.tile.openstreetmap.org/${z}/${x}/${y}.png",
19 "https://c.tile.openstreetmap.org/${z}/${x}/${y}.png"
21 options = OpenLayers.Util.extend({
23 attribution: "© <a href='https://www.openstreetmap.org/copyright'>OpenStreetMap</a> contributors",
25 transitionEffect: "resize"
27 var newArguments = [name, url, options];
28 OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments);
31 CLASS_NAME: "OpenLayers.Layer.OSM.Mapnik"
35 * Class: OpenLayers.Layer.OSM.CycleMap
38 * - <OpenLayers.Layer.OSM>
40 OpenLayers.Layer.OSM.CycleMap = OpenLayers.Class(OpenLayers.Layer.OSM, {
42 * Constructor: OpenLayers.Layer.OSM.CycleMap
46 * options - {Object} Hashtable of extra options to tag onto the layer
48 initialize: function(name, options) {
50 "http://a.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png",
51 "http://b.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png",
52 "http://c.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png"
54 options = OpenLayers.Util.extend({
56 attribution: "© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a> contributors, Tiles courtesy of <a href='http://www.opencyclemap.org'>Andy Allan</a>",
58 transitionEffect: "resize"
60 var newArguments = [name, url, options];
61 OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments);
64 CLASS_NAME: "OpenLayers.Layer.OSM.CycleMap"
68 * Class: OpenLayers.Layer.OSM.TransportMap
71 * - <OpenLayers.Layer.OSM>
73 OpenLayers.Layer.OSM.TransportMap = OpenLayers.Class(OpenLayers.Layer.OSM, {
75 * Constructor: OpenLayers.Layer.OSM.TransportMap
79 * options - {Object} Hashtable of extra options to tag onto the layer
81 initialize: function(name, options) {
83 "http://a.tile2.opencyclemap.org/transport/${z}/${x}/${y}.png",
84 "http://b.tile2.opencyclemap.org/transport/${z}/${x}/${y}.png",
85 "http://c.tile2.opencyclemap.org/transport/${z}/${x}/${y}.png"
87 options = OpenLayers.Util.extend({
89 attribution: "© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a> contributors, Tiles courtesy of <a href='http://www.opencyclemap.org'>Andy Allan</a>",
91 transitionEffect: "resize"
93 var newArguments = [name, url, options];
94 OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments);
97 CLASS_NAME: "OpenLayers.Layer.OSM.TransportMap"