From Erik, "add strategic TBD 3.0 comments to remind us to remove the 'url'
var from OpenLayers.Tile's constructor." This has no affects other than to let people know now that this behavior will change in future versions of OpenLayers. #647. git-svn-id: http://svn.openlayers.org/trunk/openlayers@3034 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -11,6 +11,9 @@
|
||||
OpenLayers.Tile.Image = OpenLayers.Class.create();
|
||||
OpenLayers.Tile.Image.prototype =
|
||||
OpenLayers.Class.inherit( OpenLayers.Tile, {
|
||||
|
||||
/** @type String */
|
||||
url: null,
|
||||
|
||||
/** @type DOMElement img */
|
||||
imgDiv: null,
|
||||
@@ -22,7 +25,10 @@ OpenLayers.Tile.Image.prototype =
|
||||
* @type DOMElement div */
|
||||
frame: null,
|
||||
|
||||
/**
|
||||
/** TBD 3.0 - reorder the parameters to the init function to put URL
|
||||
* as last, so we can continue to call tile.initialize()
|
||||
* without changing the arguments.
|
||||
*
|
||||
* @constructor
|
||||
*
|
||||
* @param {OpenLayers.Grid} layer
|
||||
@@ -33,6 +39,9 @@ OpenLayers.Tile.Image.prototype =
|
||||
*/
|
||||
initialize: function(layer, position, bounds, url, size) {
|
||||
OpenLayers.Tile.prototype.initialize.apply(this, arguments);
|
||||
|
||||
this.url = url;
|
||||
|
||||
this.frame = document.createElement('div');
|
||||
this.frame.style.overflow = 'hidden';
|
||||
this.frame.style.position = 'absolute';
|
||||
|
||||
Reference in New Issue
Block a user