diff --git a/lib/OpenLayers/Layer/TileCache.js b/lib/OpenLayers/Layer/TileCache.js index d4bbb334d8..44402b3a4f 100644 --- a/lib/OpenLayers/Layer/TileCache.js +++ b/lib/OpenLayers/Layer/TileCache.js @@ -27,13 +27,6 @@ OpenLayers.Layer.TileCache = OpenLayers.Class(OpenLayers.Layer.Grid, { */ isBaseLayer: true, - /** - * APIProperty: tileOrigin - * {} Location of the tile lattice origin. Default is - * bottom left of the maxExtent. - */ - tileOrigin: null, - /** * APIProperty: format * {String} Mime type of the images returned. Default is image/png. @@ -157,22 +150,6 @@ OpenLayers.Layer.TileCache = OpenLayers.Class(OpenLayers.Layer.Grid, { return new OpenLayers.Tile.Image(this, position, bounds, url, this.tileSize); }, - - /** - * Method: setMap - * When the layer is added to a map, then we can fetch our origin - * (if we don't have one.) - * - * Parameters: - * map - {} - */ - setMap: function(map) { - OpenLayers.Layer.Grid.prototype.setMap.apply(this, arguments); - if (!this.tileOrigin) { - this.tileOrigin = new OpenLayers.LonLat(this.map.maxExtent.left, - this.map.maxExtent.bottom); - } - }, - + CLASS_NAME: "OpenLayers.Layer.TileCache" });