Hello, File util.js has a function 'onImageLoadError'. This function is called when an map-image or tile fails to load. There can be many reasons for a tile to fail to load. Therefore it is sometimes a good idea to automatically try to reload the tile. In order to do this, you can tell OpenLayers to try another URL, but another URL is not required. Instead, you can just set OpenLayers.IMAGE_RELOAD_ATTEMPTS to some number greater than 1 and the retry should work.
However, in util.js the retry is implemented using the following javascript code: <code> this.src = this.src </code> In IE7, FireFox 3.6 and Chrome this does not seem to result in a new request to the map server. The following hack seems to work fine for my puposes: <code> this.src=this.src.replace('?', '?retry=' + this._attemps + '&'); </code> Are there better ways to solve the problem of reloading the image? Here, the URL is modified, which could, at least theoretically, have some unexpected side effects. Anne _______________________________________________ Dev mailing list Dev@openlayers.org http://openlayers.org/mailman/listinfo/dev