remove deprecated methods for 2.0 release. Documentation available at ReleaseNotes2.0
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1228 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -43,15 +43,6 @@ OpenLayers.Pixel.prototype = {
|
|||||||
return ("x=" + this.x + ",y=" + this.y);
|
return ("x=" + this.x + ",y=" + this.y);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated
|
|
||||||
*
|
|
||||||
* @type OpenLayers.Pixel
|
|
||||||
*/
|
|
||||||
copyOf:function() {
|
|
||||||
return this.clone();
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type OpenLayers.Pixel
|
* @type OpenLayers.Pixel
|
||||||
*/
|
*/
|
||||||
@@ -145,16 +136,6 @@ OpenLayers.Size.prototype = {
|
|||||||
return ("w=" + this.w + ",h=" + this.h);
|
return ("w=" + this.w + ",h=" + this.h);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated
|
|
||||||
*
|
|
||||||
* @return New OpenLayers.Size object with the same w and h values
|
|
||||||
* @type OpenLayers.Size
|
|
||||||
*/
|
|
||||||
copyOf:function() {
|
|
||||||
return this.clone();
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return New OpenLayers.Size object with the same w and h values
|
* @return New OpenLayers.Size object with the same w and h values
|
||||||
* @type OpenLayers.Size
|
* @type OpenLayers.Size
|
||||||
@@ -234,16 +215,6 @@ OpenLayers.LonLat.prototype = {
|
|||||||
return (this.lon + ", " + this.lat);
|
return (this.lon + ", " + this.lat);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated
|
|
||||||
*
|
|
||||||
* @return New OpenLayers.LonLat object with the same lon and lat values
|
|
||||||
* @type OpenLayers.LonLat
|
|
||||||
*/
|
|
||||||
copyOf:function() {
|
|
||||||
return this.clone();
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return New OpenLayers.LonLat object with the same lon and lat values
|
* @return New OpenLayers.LonLat object with the same lon and lat values
|
||||||
* @type OpenLayers.LonLat
|
* @type OpenLayers.LonLat
|
||||||
@@ -350,16 +321,6 @@ OpenLayers.Bounds.prototype = {
|
|||||||
this.top = top;
|
this.top = top;
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated
|
|
||||||
*
|
|
||||||
* @returns A fresh copy of the bounds
|
|
||||||
* @type OpenLayers.Bounds
|
|
||||||
*/
|
|
||||||
copyOf:function() {
|
|
||||||
return this.clone();
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @returns A fresh copy of the bounds
|
* @returns A fresh copy of the bounds
|
||||||
* @type OpenLayers.Bounds
|
* @type OpenLayers.Bounds
|
||||||
@@ -702,16 +663,6 @@ Array.prototype.remove = function(item) {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated
|
|
||||||
*
|
|
||||||
* @returns A fresh copy of the array
|
|
||||||
* @type Array
|
|
||||||
*/
|
|
||||||
Array.prototype.copyOf = function() {
|
|
||||||
return this.clone();
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @returns A fresh copy of the array
|
* @returns A fresh copy of the array
|
||||||
* @type Array
|
* @type Array
|
||||||
|
|||||||
@@ -88,17 +88,6 @@ OpenLayers.Layer.Grid.prototype =
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated User should just set the 'tileSize' via options
|
|
||||||
*
|
|
||||||
* @param {OpenLayers.Size} size
|
|
||||||
*/
|
|
||||||
setTileSize: function (size) {
|
|
||||||
if (size) {
|
|
||||||
this.tileSize = size.clone();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {String} tileID
|
* @param {String} tileID
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -79,17 +79,6 @@ OpenLayers.Layer.HTTPRequest.prototype =
|
|||||||
this.url = newUrl;
|
this.url = newUrl;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
/** Deprecated wrapper for mergeNewParams() just so as to not break
|
|
||||||
* anyone's code who might be using this
|
|
||||||
*
|
|
||||||
* @deprecated
|
|
||||||
* @param {Object} newParams
|
|
||||||
*/
|
|
||||||
changeParams:function(newParams) {
|
|
||||||
this.mergeNewParams(newParams);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {Object} newParams
|
* @param {Object} newParams
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -706,16 +706,7 @@ OpenLayers.Map.prototype = {
|
|||||||
|
|
||||||
return maxResolution;
|
return maxResolution;
|
||||||
},
|
},
|
||||||
|
|
||||||
/** Wrapper to maintain defined API functionality.
|
|
||||||
* getMaxExtent() should be used from now on.
|
|
||||||
*
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
getFullExtent: function() {
|
|
||||||
return this.getMaxExtent();
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type OpenLayers.Bounds
|
* @type OpenLayers.Bounds
|
||||||
*/
|
*/
|
||||||
@@ -885,15 +876,6 @@ OpenLayers.Map.prototype = {
|
|||||||
this.getZoomForExtent(bounds));
|
this.getZoomForExtent(bounds));
|
||||||
},
|
},
|
||||||
|
|
||||||
/** Wrapper to maintain defined API functionality.
|
|
||||||
* zoomToMaxExtent() should be used from now on.
|
|
||||||
*
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
zoomToFullExtent: function() {
|
|
||||||
this.zoomToMaxExtent();
|
|
||||||
},
|
|
||||||
|
|
||||||
/** Zoom to the full extent and recenter.
|
/** Zoom to the full extent and recenter.
|
||||||
*/
|
*/
|
||||||
zoomToMaxExtent: function() {
|
zoomToMaxExtent: function() {
|
||||||
|
|||||||
@@ -64,30 +64,6 @@
|
|||||||
t.eq( layer.url, "foo", "setUrl() works");
|
t.eq( layer.url, "foo", "setUrl() works");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
function test_04_Layer_HTTPRequest_changeParams (t) {
|
|
||||||
t.plan( 3 );
|
|
||||||
|
|
||||||
layer = new OpenLayers.Layer.HTTPRequest(name, url, params, options);
|
|
||||||
|
|
||||||
var newParams = { layers: 'sooper',
|
|
||||||
chickpeas: 'image/png'};
|
|
||||||
|
|
||||||
layer.changeParams(newParams);
|
|
||||||
|
|
||||||
t.eq( layer.params.layers, "sooper", "changeParams() overwrites well");
|
|
||||||
t.eq( layer.params.chickpeas, "image/png", "changeParams() adds well");
|
|
||||||
|
|
||||||
newParams.chickpeas = 151;
|
|
||||||
|
|
||||||
t.eq( layer.params.chickpeas, "image/png", "changeParams() makes clean copy of hash");
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function test_05_Layer_HTTPRequest_mergeNewParams (t) {
|
function test_05_Layer_HTTPRequest_mergeNewParams (t) {
|
||||||
t.plan( 3 );
|
t.plan( 3 );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user