readability fix for setTileSize(). No reason to be re-declaring the size variable -- it already exists as a parameter. Thanks to pvalsecc for spotting this one. :-) (See #1094)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4991 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -204,7 +204,7 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
|
|||||||
*/
|
*/
|
||||||
setTileSize: function(size) {
|
setTileSize: function(size) {
|
||||||
if (this.singleTile) {
|
if (this.singleTile) {
|
||||||
var size = this.map.getSize().clone();
|
size = this.map.getSize().clone();
|
||||||
size.h = parseInt(size.h * this.ratio);
|
size.h = parseInt(size.h * this.ratio);
|
||||||
size.w = parseInt(size.w * this.ratio);
|
size.w = parseInt(size.w * this.ratio);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user