Added setTileSize() method to Layer.Grid. Also, added clone() method to Layer.WMS to make up for lack of a separate data source class.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@63 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -14,7 +14,7 @@ OpenLayers.Layer.Grid.prototype = Object.extend( new OpenLayers.Layer(), {
|
||||
// this is an array of rows, each row is an array of tiles
|
||||
grid: null,
|
||||
|
||||
DEFAULT_TILE_SIZE: new OpenLayers.Size(256,256),
|
||||
tileSize: new OpenLayers.Size(256,256),
|
||||
|
||||
/**
|
||||
* @param {str} name
|
||||
@@ -25,8 +25,12 @@ OpenLayers.Layer.Grid.prototype = Object.extend( new OpenLayers.Layer(), {
|
||||
OpenLayers.Layer.prototype.initialize.apply(this, [name]);
|
||||
this.url = url;
|
||||
this.params = params;
|
||||
this.tileSize = this.DEFAULT_TILE_SIZE;
|
||||
},
|
||||
|
||||
setTileSize: function (size) {
|
||||
this.tileSize = size.copyOf();
|
||||
},
|
||||
|
||||
/**
|
||||
* moveTo
|
||||
* moveTo is a function called whenever the map is moved. All the moving
|
||||
|
||||
Reference in New Issue
Block a user