[Tilecache] An error occurred: couldn't calculate tile index for layer

Christopher Schmidt crschmidt at metacarta.com
Mon Mar 5 20:55:01 EST 2007


On Mon, Mar 05, 2007 at 05:21:17PM -0500, Brian Pitts wrote:
> "Hm. Did you try adding that, then zooming in one?"
> 
> It doesn't make a difference. I placed a test page online with both 
> cached and uncached versions of two layers.

Sorry: I forgot that the TileCache maxResolution changes based on your
maxExtent.

Two options:

 var mapOptions = {maxExtent: new  OpenLayers.Bounds(-124.7,24.9,-66.9,49.3), 
                   maxResolution:.703125};

[US_States]
type=WMSLayer
url=http://wilson.library.emory.edu/~bpitts/cgi-bin/south
extension=png
bbox=-124.7,24.9,-66.9,49.3
maxResolution=1.40625

(The latter only works if you're on TC >= 1.4.)

Again, my apologies.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Tilecache mailing list