diff --git a/lib/OpenLayers/Layer/ArcGIS93Rest.js b/lib/OpenLayers/Layer/ArcGIS93Rest.js index 1e8a5bf79e..c0d065df44 100644 --- a/lib/OpenLayers/Layer/ArcGIS93Rest.js +++ b/lib/OpenLayers/Layer/ArcGIS93Rest.js @@ -232,22 +232,5 @@ OpenLayers.Layer.ArcGIS93Rest = OpenLayers.Class(OpenLayers.Layer.Grid, { newArguments); }, - /** - * Method: addTile - * addTile creates a tile, initializes it, and adds it to the layer div. - * - * Parameters: - * bounds - {} - * position - {} - * - * Returns: - * {} The added OpenLayers.Tile.Image - */ - addTile:function(bounds,position) { - return new OpenLayers.Tile.Image(this, position, bounds, - null, this.tileSize); - }, - - CLASS_NAME: "OpenLayers.Layer.ArcGIS93Rest" }); diff --git a/lib/OpenLayers/Layer/ArcIMS.js b/lib/OpenLayers/Layer/ArcIMS.js index 4895dc297d..4eabeb5b1b 100644 --- a/lib/OpenLayers/Layer/ArcIMS.js +++ b/lib/OpenLayers/Layer/ArcIMS.js @@ -445,22 +445,5 @@ OpenLayers.Layer.ArcIMS = OpenLayers.Class(OpenLayers.Layer.Grid, { return obj; }, - /** - * Method: addTile - * addTile creates a tile, initializes it, and adds it to the layer div. - * - * Parameters: - * bounds - {} - * position - {} - * - * Returns: - * {} The added image tile. - */ - addTile:function(bounds,position) { - return new OpenLayers.Tile.Image( - this, position, bounds, null, this.tileSize - ); - }, - CLASS_NAME: "OpenLayers.Layer.ArcIMS" }); diff --git a/lib/OpenLayers/Layer/Grid.js b/lib/OpenLayers/Layer/Grid.js index 371e192099..704dc0c2a8 100644 --- a/lib/OpenLayers/Layer/Grid.js +++ b/lib/OpenLayers/Layer/Grid.js @@ -629,9 +629,7 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, { /** * APIMethod: addTile - * Gives subclasses of Grid the opportunity to create an - * OpenLayer.Tile of their choosing. The implementer should initialize - * the new tile and take whatever steps necessary to display it. + * Create a tile, initialize it, and add it to the layer div. * * Parameters * bounds - {} @@ -641,7 +639,8 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, { * {} The added OpenLayers.Tile */ addTile:function(bounds, position) { - // Should be implemented by subclasses + return new OpenLayers.Tile.Image(this, position, bounds, null, + this.tileSize, this.tileOptions); }, /** diff --git a/lib/OpenLayers/Layer/KaMap.js b/lib/OpenLayers/Layer/KaMap.js index e50e819c93..f030501726 100644 --- a/lib/OpenLayers/Layer/KaMap.js +++ b/lib/OpenLayers/Layer/KaMap.js @@ -94,22 +94,6 @@ OpenLayers.Layer.KaMap = OpenLayers.Class(OpenLayers.Layer.Grid, { }); }, - /** - * Method: addTile - * - * Parameters: - * bounds - {} - * position - {} - * - * Returns: - * {} - */ - addTile:function(bounds,position) { - var url = this.getURL(bounds); - return new OpenLayers.Tile.Image(this, position, bounds, - url, this.tileSize); - }, - /** * Method: calculateGridLayout * ka-Map uses the center point of the map as an origin for diff --git a/lib/OpenLayers/Layer/MapGuide.js b/lib/OpenLayers/Layer/MapGuide.js index ca1af7a37e..de56f9d2ee 100644 --- a/lib/OpenLayers/Layer/MapGuide.js +++ b/lib/OpenLayers/Layer/MapGuide.js @@ -233,22 +233,6 @@ OpenLayers.Layer.MapGuide = OpenLayers.Class(OpenLayers.Layer.Grid, { return obj; }, - /** - * Method: addTile - * Creates a tile, initializes it, and adds it to the layer div. - * - * Parameters: - * bounds - {} - * position - {} - * - * Returns: - * {} The added OpenLayers.Tile.Image - */ - addTile:function(bounds,position) { - return new OpenLayers.Tile.Image(this, position, bounds, - null, this.tileSize); - }, - /** * Method: getURL * Return a query string for this layer diff --git a/lib/OpenLayers/Layer/MapServer.js b/lib/OpenLayers/Layer/MapServer.js index 501dae5db6..352c9b9755 100644 --- a/lib/OpenLayers/Layer/MapServer.js +++ b/lib/OpenLayers/Layer/MapServer.js @@ -76,22 +76,6 @@ OpenLayers.Layer.MapServer = OpenLayers.Class(OpenLayers.Layer.Grid, { return obj; }, - - /** - * Method: addTile - * Creates a tile, initializes it, and adds it to the layer div. - * - * Parameters: - * bounds - {} - * position - {} - * - * Returns: - * {} The added OpenLayers.Tile.Image - */ - addTile:function(bounds,position) { - return new OpenLayers.Tile.Image(this, position, bounds, - null, this.tileSize); - }, /** * Method: getURL diff --git a/lib/OpenLayers/Layer/TMS.js b/lib/OpenLayers/Layer/TMS.js index 19f531823c..1291b4dd2a 100644 --- a/lib/OpenLayers/Layer/TMS.js +++ b/lib/OpenLayers/Layer/TMS.js @@ -131,22 +131,6 @@ OpenLayers.Layer.TMS = OpenLayers.Class(OpenLayers.Layer.Grid, { return url + path; }, - /** - * Method: addTile - * addTile creates a tile, initializes it, and adds it to the layer div. - * - * Parameters: - * bounds - {} - * position - {} - * - * Returns: - * {} The added OpenLayers.Tile.Image - */ - addTile:function(bounds,position) { - return new OpenLayers.Tile.Image(this, position, bounds, - null, this.tileSize); - }, - /** * APIMethod: setMap * When the layer is added to a map, then we can fetch our origin diff --git a/lib/OpenLayers/Layer/TileCache.js b/lib/OpenLayers/Layer/TileCache.js index 0710aa759b..90d432be0d 100644 --- a/lib/OpenLayers/Layer/TileCache.js +++ b/lib/OpenLayers/Layer/TileCache.js @@ -144,23 +144,6 @@ OpenLayers.Layer.TileCache = OpenLayers.Class(OpenLayers.Layer.Grid, { url = (url.charAt(url.length - 1) == '/') ? url : url + '/'; return url + path; }, - - /** - * Method: addTile - * Create a tile, initialize it, and add it to the layer div. - * - * Parameters: - * bounds - {} - * position - {} - * - * Returns: - * {} The added - */ - addTile:function(bounds, position) { - var url = this.getURL(bounds); - return new OpenLayers.Tile.Image(this, position, bounds, - url, this.tileSize); - }, CLASS_NAME: "OpenLayers.Layer.TileCache" }); diff --git a/lib/OpenLayers/Layer/WMS.js b/lib/OpenLayers/Layer/WMS.js index aa07fd69ef..371c626caf 100644 --- a/lib/OpenLayers/Layer/WMS.js +++ b/lib/OpenLayers/Layer/WMS.js @@ -202,22 +202,6 @@ OpenLayers.Layer.WMS = OpenLayers.Class(OpenLayers.Layer.Grid, { return requestString; }, - /** - * Method: addTile - * addTile creates a tile, initializes it, and adds it to the layer div. - * - * Parameters: - * bounds - {} - * position - {} - * - * Returns: - * {} The added OpenLayers.Tile.Image - */ - addTile:function(bounds,position) { - return new OpenLayers.Tile.Image(this, position, bounds, - null, this.tileSize, this.tileOptions); - }, - /** * APIMethod: mergeNewParams * Catch changeParams and uppercase the new params to be merged in diff --git a/lib/OpenLayers/Layer/WMTS.js b/lib/OpenLayers/Layer/WMTS.js index b86d74a221..0c1c8c9cf8 100644 --- a/lib/OpenLayers/Layer/WMTS.js +++ b/lib/OpenLayers/Layer/WMTS.js @@ -456,21 +456,5 @@ OpenLayers.Layer.WMTS = OpenLayers.Class(OpenLayers.Layer.Grid, { } }, - /** - * Method: addTile - * Create a tile, initialize it, and add it to the layer div. - * - * Parameters: - * bounds - {} - * position - {} - * - * Returns: - * {} The added OpenLayers.Tile.Image - */ - addTile: function(bounds,position) { - return new OpenLayers.Tile.Image(this, position, bounds, - null, this.tileSize); - }, - CLASS_NAME: "OpenLayers.Layer.WMTS" }); diff --git a/lib/OpenLayers/Layer/WorldWind.js b/lib/OpenLayers/Layer/WorldWind.js index 9a1c2fda40..0bf169e913 100644 --- a/lib/OpenLayers/Layer/WorldWind.js +++ b/lib/OpenLayers/Layer/WorldWind.js @@ -59,20 +59,6 @@ OpenLayers.Layer.WorldWind = OpenLayers.Class(OpenLayers.Layer.Grid, { this.params, this.DEFAULT_PARAMS ); }, - /** - * Method: addTile - * - * Parameters: - * bounds - {} - * position - {} - * - * Returns: - * {} The added OpenLayers.Tile.Image - */ - addTile:function(bounds,position) { - return new OpenLayers.Tile.Image(this, position, bounds, - null, this.tileSize); - }, /** * Method: getZoom diff --git a/lib/OpenLayers/Layer/XYZ.js b/lib/OpenLayers/Layer/XYZ.js index 5a30bf7446..d8cbf53716 100644 --- a/lib/OpenLayers/Layer/XYZ.js +++ b/lib/OpenLayers/Layer/XYZ.js @@ -151,22 +151,6 @@ OpenLayers.Layer.XYZ = OpenLayers.Class(OpenLayers.Layer.Grid, { return {'x': x, 'y': y, 'z': z}; }, - /** - * Method: addTile - * addTile creates a tile, initializes it, and adds it to the layer div. - * - * Parameters: - * bounds - {} - * position - {} - * - * Returns: - * {} The added OpenLayers.Tile.Image - */ - addTile:function(bounds,position) { - return new OpenLayers.Tile.Image(this, position, bounds, - null, this.tileSize); - }, - /* APIMethod: setMap * When the layer is added to a map, then we can fetch our origin * (if we don't have one.) diff --git a/lib/OpenLayers/Layer/Zoomify.js b/lib/OpenLayers/Layer/Zoomify.js index c540a830b1..48272f17a7 100644 --- a/lib/OpenLayers/Layer/Zoomify.js +++ b/lib/OpenLayers/Layer/Zoomify.js @@ -238,22 +238,6 @@ OpenLayers.Layer.Zoomify = OpenLayers.Class(OpenLayers.Layer.Grid, { } }, - /** - * Method: addTile - * addTile creates a tile, initializes it, and adds it to the layer div. - * - * Parameters: - * bounds - {} - * position - {} - * - * Returns: - * {} The added OpenLayers.Tile.Image - */ - addTile:function(bounds,position) { - return new OpenLayers.Tile.Image(this, position, bounds, - null, this.tileSize); - }, - /** * APIMethod: setMap * When the layer is added to a map, then we can fetch our origin