[ka-Map-users] Configuring Ka-Map! at the web page level (alternative init.php & config.php)

Steve Walker walker at mfgis.com
Sat Jan 27 17:55:36 EST 2007


Thanks Lorenzo,

In case anybody is following along, I overlooked a couple of things in my
original post which are necessary for my approach to function -

tile.php and tile_nocache.php were modified as well to pick up the new
$szMap variable:

Around line 64, just *before*
include_once( '../include/config.php' );

include the following:

// mfgis modified code: set the szMap variable
if (!isset($szMap)) {
$szMap=( $_REQUEST['map']);
}
// end mfgis modified code

-----------------------------------------------------
Also, my suggestion to place the szMapFile array variables in a flat
textfile requires that there be no spaces between the comma-delimited list
of scales.

Whereas in the original config.php an array variable like the following is
fine
'scales' => array( 40000000, 25000000, 12000000, 7500000, 3000000, 1000000 ),

in the flat text file the list must look like this:
40000000,25000000,12000000,7500000,3000000,1000000

otherwise the space will show up as part of the tile directory name in the
cache - unless $anScales in config.php is manipulated to remove them or
ltrim() is used on the $scale variable in tile.php, tile_nocache.php,
precache.php, scale.php


-Steve




> Message: 3
> Date: Sat, 27 Jan 2007 08:43:18 +0100
> From: Lorenzo Becchi <lorenzo at ominiverdi.com>
> Subject: [ka-Map-users] Configuring Ka-Map! at the web page level
> 	(alternative	init.php & config.php)
> To: ka-map-users at lists.maptools.org
> Message-ID: <45BB0296.9090904 at ominiverdi.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Steve, wow!
>
>
> I still don't know if your code can be added someway to ka-Map CVS but
you did it cool.
>
>
>
> ciao
> Lorenzo
>
>
> ------------------------------

-- 
Steve Walker
Middle Fork Geographic Information Services
walker at mfgis.com
360-671-2505






More information about the ka-Map-users mailing list