[OpenLayers-Users] openlayers and tilecache

Christopher Schmidt crschmidt at metacarta.com
Wed Jan 17 07:43:01 EST 2007


On Wed, Jan 17, 2007 at 01:22:03PM +0100, Eric Lemoine wrote:
> Hello!
> 
> [I'm new to openlayers and this mailing list.]
> 
> I've been playing with openlayers, and I think it's really great
> stuff! Now I'm trying to add tilecache to the picture, with the goal
> to speed up my WMS requests.
> 
> A couple of questions:
> 
> (1) Is there a webpage or something explaining how to set up
> openlayers with tilecache?

The TileCache distribution includes an HTML example, index.html, which
shows how to use it with OpenLayers. Assuming that your bbox and
resolutinos array are the defaults, it should be really simple -- when they're not anymore, things get a bit more difficult.  

> (2) Does the URL passed to the OpenLayers.Layer.WMS constructor need
> to point to some tilecache script?

Yep. Example from the OpenLayers homepage:

var ol_wms = new OpenLayers.Layer.WMS( "World Map", 
              "http://labs.metacarta.com/wms-c/Basic.py?", {layers:
              'basic', format: 'image/png' } );

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list