[OpenLayers-Dev] Deactivate BaseLayer (tilecache),
but requests are still executed
T. Vieira
tvieira at xlm.pt
Fri Mar 13 08:36:14 EDT 2009
Hi,
Using OL2.7 - IE6.
I'm using tilecache for baselayer, and when i deactivate the checkBox from
that layer, visibility turns off.
But, when i do a PAN or ZOOM the request to tilecache server is still
executed.
I don't know if my code have a bug in some place, or if is a bug from
Openlayers.
I made a change to get it work correctly:
**** OpenLayers/Tile/image.js ****
draw: function() {
+ var drawTile = false;
if (this.layer != this.layer.map.baseLayer && this.layer.reproject)
{
this.bounds = this.getBoundsFromBaseLayer(this.position);
}
+ if (this.layer.visibility != 0)
- var drawTile = OpenLayers.Tile.prototype.draw.apply(this,
arguments);
+ drawTile = OpenLayers.Tile.prototype.draw.apply(this, arguments);
When the layer visibility is 0, the drawTile variable mantains false, so the
request isn't executed.
Can you test it some way?
Thanks,
Tiago Vieira
--
View this message in context: http://n2.nabble.com/Deactivate-BaseLayer-%28tilecache%29%2C-but-requests-are-still-executed-tp2473163p2473163.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.
More information about the Dev
mailing list