r102979 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102978‎ | r102979 | r102980 >
Date:13:37, 14 November 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
up osm js
Modified paths:
  • /trunk/extensions/Maps/includes/services/OpenLayers/OSM/OpenStreetMap.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Maps/includes/services/OpenLayers/OSM/OpenStreetMap.js
@@ -7,7 +7,7 @@
88 * Constant: MISSING_TILE_URL
99 * {String} URL of image to display for missing tiles
1010 */
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";
1212
1313 /**
1414 * Property: originalOnImageLoadError
@@ -48,7 +48,11 @@
4949 "http://b.tile.openstreetmap.org/${z}/${x}/${y}.png",
5050 "http://c.tile.openstreetmap.org/${z}/${x}/${y}.png"
5151 ];
52 - options = OpenLayers.Util.extend({ numZoomLevels: 19 }, options);
 52+ options = OpenLayers.Util.extend({
 53+ numZoomLevels: 19,
 54+ buffer: 0,
 55+ transitionEffect: "resize"
 56+ }, options);
5357 var newArguments = [name, url, options];
5458 OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments);
5559 },
@@ -76,7 +80,11 @@
7781 "http://b.tah.openstreetmap.org/Tiles/tile/${z}/${x}/${y}.png",
7882 "http://c.tah.openstreetmap.org/Tiles/tile/${z}/${x}/${y}.png"
7983 ];
80 - options = OpenLayers.Util.extend({ numZoomLevels: 18 }, options);
 84+ options = OpenLayers.Util.extend({
 85+ numZoomLevels: 18,
 86+ buffer: 0,
 87+ transitionEffect: "resize"
 88+ }, options);
8189 var newArguments = [name, url, options];
8290 OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments);
8391 },
@@ -100,42 +108,18 @@
101109 */
102110 initialize: function(name, options) {
103111 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"
107115 ];
108 - options = OpenLayers.Util.extend({ numZoomLevels: 19 }, options);
 116+ options = OpenLayers.Util.extend({
 117+ numZoomLevels: 19,
 118+ buffer: 0,
 119+ transitionEffect: "resize"
 120+ }, options);
109121 var newArguments = [name, url, options];
110122 OpenLayers.Layer.OSM.prototype.initialize.apply(this, newArguments);
111123 },
112124
113125 CLASS_NAME: "OpenLayers.Layer.OSM.CycleMap"
114126 });
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