[OpenLayers-Dev] Scale dependencies with TileCache
Christopher Schmidt
crschmidt at metacarta.com
Tue Sep 4 12:22:31 EDT 2007
On Tue, Sep 04, 2007 at 12:05:28PM -0400, fporcelli at taic.net wrote:
> Hello --
>
> I was interested in creating a cached layer with scale dependencies using TileCache. The layer configuration using just OpenLayers works fine and is shown below. However I want to cache this layer and have tileCache only request tiles from within the minScale and maxScale parameters. Is this possible?
TileCache needs to be handed a list of resolutions. It's not clear to me
what your units, maxExtent, etc. are. You should set your TileCache
layer up to have the *resolutions of the base layer* which exist between
those scales.
OpenLayers.Util.getResolutionFromScale may be useful.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Dev
mailing list