Index: trunk/extensions/Maps/includes/services/OpenLayers/OSM/OpenStreetMap.js |
— | — | @@ -7,7 +7,7 @@ |
8 | 8 | * Constant: MISSING_TILE_URL |
9 | 9 | * {String} URL of image to display for missing tiles |
10 | 10 | */ |
11 | | -OpenLayers.Util.OSM.MISSING_TILE_URL = "http://openstreetmap.org/openlayers/img/404.png"; |
| 11 | +OpenLayers.Util.OSM.MISSING_TILE_URL = "http://www.openstreetmap.org/openlayers/img/404.png"; |
12 | 12 | |
13 | 13 | /** |
14 | 14 | * Property: originalOnImageLoadError |
— | — | @@ -48,7 +48,11 @@ |
49 | 49 | "http://b.tile.openstreetmap.org/${z}/${x}/${y}.png", |
50 | 50 | "http://c.tile.openstreetmap.org/${z}/${x}/${y}.png" |
51 | 51 | ]; |
52 | | - options = OpenLayers.Util.extend({ numZoomLevels: 19 }, options); |
| 52 | + options = OpenLayers.Util.extend({ |
| 53 | + numZoomLevels: 19, |
| 54 | + buffer: 0, |
| 55 | + transitionEffect: "resize" |
| 56 | + }, options); |
53 | 57 | var newArguments = [name, url, options]; |
54 | 58 | OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments); |
55 | 59 | }, |
— | — | @@ -76,7 +80,11 @@ |
77 | 81 | "http://b.tah.openstreetmap.org/Tiles/tile/${z}/${x}/${y}.png", |
78 | 82 | "http://c.tah.openstreetmap.org/Tiles/tile/${z}/${x}/${y}.png" |
79 | 83 | ]; |
80 | | - options = OpenLayers.Util.extend({ numZoomLevels: 18 }, options); |
| 84 | + options = OpenLayers.Util.extend({ |
| 85 | + numZoomLevels: 18, |
| 86 | + buffer: 0, |
| 87 | + transitionEffect: "resize" |
| 88 | + }, options); |
81 | 89 | var newArguments = [name, url, options]; |
82 | 90 | OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments); |
83 | 91 | }, |
— | — | @@ -100,42 +108,18 @@ |
101 | 109 | */ |
102 | 110 | initialize: function(name, options) { |
103 | 111 | var url = [ |
104 | | - "http://a.andy.sandbox.cloudmade.com/tiles/cycle/${z}/${x}/${y}.png", |
105 | | - "http://b.andy.sandbox.cloudmade.com/tiles/cycle/${z}/${x}/${y}.png", |
106 | | - "http://c.andy.sandbox.cloudmade.com/tiles/cycle/${z}/${x}/${y}.png" |
| 112 | + "http://a.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png", |
| 113 | + "http://b.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png", |
| 114 | + "http://c.tile.opencyclemap.org/cycle/${z}/${x}/${y}.png" |
107 | 115 | ]; |
108 | | - options = OpenLayers.Util.extend({ numZoomLevels: 19 }, options); |
| 116 | + options = OpenLayers.Util.extend({ |
| 117 | + numZoomLevels: 19, |
| 118 | + buffer: 0, |
| 119 | + transitionEffect: "resize" |
| 120 | + }, options); |
109 | 121 | var newArguments = [name, url, options]; |
110 | 122 | OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments); |
111 | 123 | }, |
112 | 124 | |
113 | 125 | CLASS_NAME: "OpenLayers.Layer.OSM.CycleMap" |
114 | 126 | }); |
115 | | - |
116 | | -/** |
117 | | - * Class: OpenLayers.Layer.OSM.Maplint |
118 | | - * |
119 | | - * Inherits from: |
120 | | - * - <OpenLayers.Layer.OSM> |
121 | | - */ |
122 | | -OpenLayers.Layer.OSM.Maplint = OpenLayers.Class(OpenLayers.Layer.OSM, { |
123 | | - /** |
124 | | - * Constructor: OpenLayers.Layer.OSM.Maplint |
125 | | - * |
126 | | - * Parameters: |
127 | | - * name - {String} |
128 | | - * options - {Object} Hashtable of extra options to tag onto the layer |
129 | | - */ |
130 | | - initialize: function(name, options) { |
131 | | - var url = [ |
132 | | - "http://d.tah.openstreetmap.org/Tiles/maplint/${z}/${x}/${y}.png", |
133 | | - "http://e.tah.openstreetmap.org/Tiles/maplint/${z}/${x}/${y}.png", |
134 | | - "http://f.tah.openstreetmap.org/Tiles/maplint/${z}/${x}/${y}.png" |
135 | | - ]; |
136 | | - options = OpenLayers.Util.extend({ numZoomLevels: 18, isBaseLayer: false, visibility: false }, options); |
137 | | - var newArguments = [name, url, options]; |
138 | | - OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments); |
139 | | - }, |
140 | | - |
141 | | - CLASS_NAME: "OpenLayers.Layer.OSM.Maplint" |
142 | | -}); |
\ No newline at end of file |