Location: PHPKode > projects > jjfmapper > jjfmapper/site_config.php
<?php #-*-Mode: php; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
    jjfMapper, a cartography program for PHP 4.
    Copyright (C) 2004  John J Foerch

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

/* User configuration file.  This file sets several constants that affect
jjfmapper.  Some contain file paths.  Some give you the ability to load or not
load geoformats.  The advice of the developer is this: first get your map
working: then research the effects of the constants in this file and use them
to trim the memory consumption of jjfmapper and to provide conveniences like
language settings and path settings.

/* when JJFM_CHECK_GD_VERSION is defined, jjfMapper will determine what
version of GD is running, and use the most up to date features of the library
for drawing.  You can speed up jjfMapper slightly by commenting out this
definition and uncommenting the definitions for the constants that look like
JJFM_USE_GD*.  Uncomment only the ones whose versions are less than or equal
to what you have installed.  Each one of these constants turns on certain new
features of the GD module, like line thickness, true color, or alpha
//define ('JJFM_USE_GD2',1);
//define ('JJFM_USE_GD201',1);

//default location for the map cache
define ('JJFM_CACHEDIR', JJFM_BASEDIR.'/cache');

//JJFM_GEODIR is not a default, but it will be provided
//to jjfmapper config files as a variable, referrable as
define ('JJFM_GEODIR', JJFM_BASEDIR.'/geography');

//default image width and height.  These must be defined.
define ('JJFM_DEFAULT_WIDTH',430);
define ('JJFM_DEFAULT_HEIGHT',370);

//Constants with names JJFM_GEOFORMAT_* give you the
//ability to enable and disable geoformats.  Use these
//constants with care.  Disabling formats will not improve
//the speed of the mapper because geoformats are loaded
//dynamically as needed.  They do however give you one
//tool for debugging, especially if you are developing
//a geoformat.  To disable a format, comment the line
//that defines it.
define ('JJFM_GEOFORMAT_GPX',1);

/* JJFM_CONFIG_TAGS contains a comma separated list of the elements that will
be parsed into the config data structure.  Each element has to be named in
upper case.  Defining this constant helps jjfMapper to conserve memory by not
inserting extraneous tags into its config structure, or doing duplication of
parsing on, for example, inline GPX.  It is best to leave this constant as it

/* When JJFM_CHECK_FONT_LIBRARY is defined, JJFMapper will detect the best
 * font library to use -- FreeType, TrueType, or none.  You can skip this
 * detection by commenting the define of JJFM_CHECK_FONT_LIBRARY and
 * uncommenting the definition of either JJFM_USE_FT or JJFM_USE_TTF.  The
 * savings in resources for the check are miniscule, so this is mainly useful
 * for debugging.
//define ('JJFM_USE_FT',1);
//define ('JJFM_USE_TTF',1);

/* If defined, JJF_SHAPEFILE_CONSERVE_MEMORY will cause the Shapefile module
 * to read a shapefile in chunks as needed instead of all at once during
 * instantiation.  Memory is conserved by accessing the hard disk more.  The
 * hard drive will be accessed doubly if the projection is fit to shapes in a
 * shapefile.  It is a trade-off.
 * JJFM_SHAPEFILE_READ_SIZE defines the chunk size to use when
 * JJFM_SHAPEFILE_CONSERVE_MEMORY is on.  This value is not explicit.  The
 * Shapefile module will in all cases read complete shapes, which may be
 * larger than the value of this constant.
define ('JJFM_SHAPEFILE_READ_SIZE',pow(2,17));

Return current item: jjfmapper