reverting r10112 Spelling of API methods getURL and setUrl of imagelayers is inconsistent and confusing, see ticket:2354
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10139 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -227,29 +227,11 @@ OpenLayers.Layer.Image = OpenLayers.Class(OpenLayers.Layer, {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* APIMethod: setUrl
|
* APIMethod: setUrl
|
||||||
* *Deprecated*. Please use the method setURL() instead.
|
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* newUrl - {String}
|
* newUrl - {String}
|
||||||
*/
|
*/
|
||||||
setUrl: function(newUrl) {
|
setUrl: function(newUrl) {
|
||||||
var msg = "The method 'setUrl' of OpenLayers.Layer.Image-layers is " +
|
|
||||||
"deprecated as of OpenLayers 2.9 and should not be used anymore. " +
|
|
||||||
"Use the method 'setURL' (notice the different spelling) instead. " +
|
|
||||||
"The old method 'setUrl' may be removed from future releases without " +
|
|
||||||
"further notice.";
|
|
||||||
OpenLayers.Console.warn(msg);
|
|
||||||
this.setURL(newUrl);
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
|
||||||
* APIMethod: setURL
|
|
||||||
* Sets the URL of the image and draws the tile.
|
|
||||||
*
|
|
||||||
* Parameters:
|
|
||||||
* newUrl - {String}
|
|
||||||
*/
|
|
||||||
setURL: function(newUrl) {
|
|
||||||
this.url = newUrl;
|
this.url = newUrl;
|
||||||
this.tile.draw();
|
this.tile.draw();
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user