Tilecache and Custom Map using ImageLayer
crschmidt at metacarta.com
Fri May 23 15:23:08 EDT 2008
On Fri, May 23, 2008 at 11:26:55AM -0700, Nathan Boettcher wrote:
> Glad to know I got the maxExtent part right after looking at the OpenLayers
> API docs. :)
> So what if I set the maxResolution to 5, does that give me an automatic 5
> zoom levels? If so, what are they, 0-4?
maxresolution is 'map units per pixel at most zoomed out.' What you want
is 'levels' (TC) / numZoomLevels (OL).
> Also, and this might be related, how do I get the image size so it doesn't
> have black around the border when it generates the tiles? I monkeyed with a
> few different sizes but always got the black border. Is there an optimal
> size so that doesn't happen during the tile generation/seeding?
Pick a maxResolution which divides your image by an exact number of
tiles in each direction. IE: 4000 x 4000 image -> 4000 / 256 = 15.625
maxResolution will divide your image into a single til, and shold
continue to work as you zoom in.
More information about the Tilecache