[ka-Map-users] tile_source [auto|cache|redraw]

Tim Schaub tim at commenspace.org
Mon Apr 3 19:18:45 EDT 2006


> But how is this meant to be set up. 

If you want to use the "cache" option for "tile_source" layer metadata,
you have to pre-render all of your tiles for that layer (or group if you
use groups).  You can use precache.php to do the rendering ahead of time
(see http://ka-map.ominiverdi.org/wiki/index.php/Pre-caching_system).


> And what is the 
> connection between the two variables $szBaseCacheDir which is 
> default set to "/tmp/kacache/" and $szBaseWebCache which is 
> default set to "kacache/"? Should this two directories be 
> separated or can they be the same?

The $szBaseCacheDir variable is the path to your cache on the file
system.  This can be a path relative to your tile.php script or an
absolute path.

The $szBaseWebCache variable is the web accessible path to your cache
relative to the page that calls all of the ka-Map JavaScript (index.html
or iframe.html).  For the cache option to work, you should be able to
access your cached files remotely with a web browser (by typing in the
URL).

So $szBaseCacheDir is a file system path (relative to tile.php or
absolute) and $szBaseWebCache is a web path (relative to index.html if
you use that).

Hope that makes sense,
Tim


> 
> Sten-Helge Henriksen
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
> 



More information about the ka-Map-users mailing list