Also pass the transparent param on to addTile in the column/row functions.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@682 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -146,7 +146,7 @@ OpenLayers.Layer.Grid.prototype = Object.extend( new OpenLayers.Layer(), {
|
|||||||
new OpenLayers.Pixel(tileoffsetx - parseInt(this.map.layerContainerDiv.style.left),
|
new OpenLayers.Pixel(tileoffsetx - parseInt(this.map.layerContainerDiv.style.left),
|
||||||
tileoffsety - parseInt(this.map.layerContainerDiv.style.top))
|
tileoffsety - parseInt(this.map.layerContainerDiv.style.top))
|
||||||
);
|
);
|
||||||
tile.draw((this.params.TRANSPARENT == true));
|
tile.draw((this.params.TRANSPARENT == 'true'));
|
||||||
row.append(tile);
|
row.append(tile);
|
||||||
|
|
||||||
tileoffsetlon += tilelon;
|
tileoffsetlon += tilelon;
|
||||||
@@ -181,7 +181,7 @@ OpenLayers.Layer.Grid.prototype = Object.extend( new OpenLayers.Layer(), {
|
|||||||
bounds.top = bounds.top + deltaLat;
|
bounds.top = bounds.top + deltaLat;
|
||||||
position.y = position.y + deltaY;
|
position.y = position.y + deltaY;
|
||||||
var newTile = this.addTile(bounds, position);
|
var newTile = this.addTile(bounds, position);
|
||||||
newTile.draw();
|
newTile.draw((this.params.TRANSPARENT == 'true'));
|
||||||
newRow.append(newTile);
|
newRow.append(newTile);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -215,7 +215,7 @@ OpenLayers.Layer.Grid.prototype = Object.extend( new OpenLayers.Layer(), {
|
|||||||
bounds.right = bounds.right + deltaLon;
|
bounds.right = bounds.right + deltaLon;
|
||||||
position.x = position.x + deltaX;
|
position.x = position.x + deltaX;
|
||||||
var newTile = this.addTile(bounds, position);
|
var newTile = this.addTile(bounds, position);
|
||||||
newTile.draw();
|
newTile.draw((this.params.TRANSPARENT == 'true'));
|
||||||
|
|
||||||
if (prepend) {
|
if (prepend) {
|
||||||
row = row.prepend(newTile);
|
row = row.prepend(newTile);
|
||||||
|
|||||||
Reference in New Issue
Block a user