OpenLayers OpenLayers

Changeset 180

Show
Ignore:
Timestamp:
05/19/06 11:19:49 (3 years ago)
Author:
euzuro
Message:

give tiles a reference back to their container OpenLayers.Grid

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Tile.js

    r173 r180  
    1010OpenLayers.Tile = Class.create(); 
    1111OpenLayers.Tile.prototype = { 
     12     
     13    /** @type OpenLayers.Grid */ 
     14    grid: null, 
    1215     
    1316    // str - url of the request 
     
    2427 
    2528    /** 
    26     * @param {OpenLayers.Layer} layer 
    27     * @param {OpenLayers.LonLat} coord 
     29    * @constructor 
     30    * 
     31    * @param {OpenLayers.Grid} grid 
     32    * @param {OpenLayers.Bounds} bounds 
     33    * @param {String} url 
     34    * @param {OpenLayers.Size} size 
    2835    */    
    29     initialize: function(bounds,url,size) { 
     36    initialize: function(grid, bounds, url, size) { 
    3037        if (arguments.length > 0) { 
     38            this.grid = grid; 
    3139            this.url = url; 
    3240            this.bounds = bounds; 
  • trunk/openlayers/lib/OpenLayers/Tile/Image.js

    r173 r180  
    1212    * @constructor 
    1313    * 
     14    * @param {OpenLayers.Grid} grid 
    1415    * @param {OpenLayers.Bounds} bounds 
    1516    * @param {String} url 
    1617    * @param {OpenLayers.Size} size 
    1718    */ 
    18     initialize: function(bounds,url,size) { 
     19    initialize: function(grid, bounds, url, size) { 
    1920        OpenLayers.Tile.prototype.initialize.apply(this, arguments); 
    2021    }, 
  • trunk/openlayers/lib/OpenLayers/Tile/WFS.js

    r176 r180  
    1616    * @constructor 
    1717    * 
     18    * @param {OpenLayers.Grid} grid 
    1819    * @param {OpenLayers.Bounds} bounds 
    1920    * @param {String} url 
    2021    * @param {OpenLayers.Size} size 
    2122    */ 
    22     initialize: function(bounds, url, size) { 
     23    initialize: function(grid, bounds, url, size) { 
    2324        OpenLayers.Tile.prototype.initialize.apply(this, arguments); 
    2425