give tiles a reference back to their container OpenLayers.Grid
git-svn-id: http://svn.openlayers.org/trunk/openlayers@180 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
+11
-3
@@ -10,6 +10,9 @@
|
|||||||
OpenLayers.Tile = Class.create();
|
OpenLayers.Tile = Class.create();
|
||||||
OpenLayers.Tile.prototype = {
|
OpenLayers.Tile.prototype = {
|
||||||
|
|
||||||
|
/** @type OpenLayers.Grid */
|
||||||
|
grid: null,
|
||||||
|
|
||||||
// str - url of the request
|
// str - url of the request
|
||||||
url:null,
|
url:null,
|
||||||
|
|
||||||
@@ -23,11 +26,16 @@ OpenLayers.Tile.prototype = {
|
|||||||
position:null,
|
position:null,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {OpenLayers.Layer} layer
|
* @constructor
|
||||||
* @param {OpenLayers.LonLat} coord
|
*
|
||||||
|
* @param {OpenLayers.Grid} grid
|
||||||
|
* @param {OpenLayers.Bounds} bounds
|
||||||
|
* @param {String} url
|
||||||
|
* @param {OpenLayers.Size} size
|
||||||
*/
|
*/
|
||||||
initialize: function(bounds,url,size) {
|
initialize: function(grid, bounds, url, size) {
|
||||||
if (arguments.length > 0) {
|
if (arguments.length > 0) {
|
||||||
|
this.grid = grid;
|
||||||
this.url = url;
|
this.url = url;
|
||||||
this.bounds = bounds;
|
this.bounds = bounds;
|
||||||
this.size = size;
|
this.size = size;
|
||||||
|
|||||||
@@ -11,11 +11,12 @@ OpenLayers.Tile.Image.prototype =
|
|||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
*
|
*
|
||||||
|
* @param {OpenLayers.Grid} grid
|
||||||
* @param {OpenLayers.Bounds} bounds
|
* @param {OpenLayers.Bounds} bounds
|
||||||
* @param {String} url
|
* @param {String} url
|
||||||
* @param {OpenLayers.Size} size
|
* @param {OpenLayers.Size} size
|
||||||
*/
|
*/
|
||||||
initialize: function(bounds,url,size) {
|
initialize: function(grid, bounds, url, size) {
|
||||||
OpenLayers.Tile.prototype.initialize.apply(this, arguments);
|
OpenLayers.Tile.prototype.initialize.apply(this, arguments);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -15,11 +15,12 @@ OpenLayers.Tile.WFS.prototype =
|
|||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
*
|
*
|
||||||
|
* @param {OpenLayers.Grid} grid
|
||||||
* @param {OpenLayers.Bounds} bounds
|
* @param {OpenLayers.Bounds} bounds
|
||||||
* @param {String} url
|
* @param {String} url
|
||||||
* @param {OpenLayers.Size} size
|
* @param {OpenLayers.Size} size
|
||||||
*/
|
*/
|
||||||
initialize: function(bounds, url, size) {
|
initialize: function(grid, bounds, url, size) {
|
||||||
OpenLayers.Tile.prototype.initialize.apply(this, arguments);
|
OpenLayers.Tile.prototype.initialize.apply(this, arguments);
|
||||||
|
|
||||||
this.features = new Array();
|
this.features = new Array();
|
||||||
|
|||||||
Reference in New Issue
Block a user