>> Back to manual

Settings in the INI file (config_default.ini)

for p.mapper version 3.3

PMAPPER

[PMAPPER]
; p.mapper version
pmapper.version = 3.3-dev

;====================================================
; MapServer Version 
; necessary only if extension dl() function is used
; corresponding to naming of php_mapscript_xx.dll/.so
; e.g. for php_mapscript_44.dll set
; msVersion = 44
; if not set php_mapscript.dll/.so 
; is assumed to be the extension name
;----------------------------------------------------
;pmapper.msVersion = 50


;==============================================================
; Debug level: writes debugging info in pm_debug.log in the 
; same directory as PHP error log file; requires php.ini 
; setting 'error_log' to be set to a valid file
; 0: no debug; 1: lowest debug level
;--------------------------------------------------------------
pmapper.debugLevel = 3


;==============================================================
; PLUGINS activated
; a comma-separated list of plugins to be loaded
;--------------------------------------------------------------
;plugins = coordinates
pmapper.plugins = export, scalebar

CONFIG

[CONFIG]
;=======================================
; Configuration directory under /config/
; - for js_config.php & php_config.php
; - without slashes or backslashes
; - default value is: default
; === OPTIONAL ===
;---------------------------------------
config.pm_config_location = default


;=================================================
; path of search config file for attribute search
; - relative file name under pm_config_location
; - or absolute path in filesystem (use slashes)
; default value is: search.xml
; === OPTIONAL ===
;-------------------------------------------------
;config.pm_search_configfile = search.xml


;=================================
; WEB LOCATION for INCPHP dir
; === OPTIONAL ===
;---------------------------------
;config.pm_incphp_location = ../../pmapper2lib/incphp


;=================================
; WEB LOCATION for JAVASCRIPT dir
; === OPTIONAL ===
;---------------------------------
;config.pm_javascript_location = ../../pmapper2lib/javascript
;config.pm_javascript_location = javascript/compressed 


;=================================
; CONFIG FILEE FOR PRINTING
; path relative to /config/
; (same level as this config.ini)
; defaults to common/print.xml
;---------------------------------
config.pm_print_configfile = common/print.xml

MAP

[MAP]

; ALL groups displayed in TOC in this order
; - without definition, the order from map file will be taken.
; - separated with commas
; if INI setting "useCategories = 1" (see below), 
; then define the categories in php_config.php
; === RECOMMENDED ===
;--------------------------------------------------------------------------
map.allGroups = countries, cities10000eu, dem, rivers, jpl_wms_global_mosaic


; Default Groups (visible at start)
; === RECOMMENDED ===
;----------------------------------
map.defGroups = countries, cities10000eu


; Groups/Layers that shall be mutually disabled 
; if one is clicked, the other ones will be disabled
;-------------------------------------------------------------
;map.mutualDisableList = dem, jpl_wms_global_mosaic, corine


; Groups/Layers list where to use auto_identify(tooltip) function
; === OPTIONAL ===
;-----------------------------------------------------------------
;map.autoIdentifyGroups = countries, cities


; Automatically refresh map when selection of 
; layers/grouops has changed in TOC
;--------------------------------------------
map.layerAutoRefresh = 1 


;====================================================================
; IMAGE FORMATS
; Image format for map and legend icons 
;--------------------------------------------------------------------
;imgFormat = jpeg 
;imgFormat = agg_png
map.imgFormat = png


; alternative Image format for map 
; useful eg. for imagery data
; - possible values: png  jpeg  gif
map.altImgFormat = jpeg

; layer list (comma separated) that shall activate alternative
; image format when one of these layers has status ON
map.altImgFormatLayers = jpl_wms_global_mosaic, dem



;=============================================================
; DEFINE START AND END SCALE FOR ZOOM SLIDER
; => Adapt to specific extents of the datasets
; or use 'max' for automatically calculate from map file
; -> in file 'map.phtml'
;-------------------------------------------------------------
;map.sliderMax = 40000000
map.sliderMax = max
map.sliderMin = 100000

QUERY

; Limit for results of selection with select tool or search
;----------------------------------------------------------
query.limitResult = 300

; Highlight color for identify/search zoom in
; RGB values, separated with commas
;---------------------------------------------
query.highlightColor = 0, 255, 255

; Map file template used for highlighting query results
; use relative path towards /config/
; if not specified then default highlighting 
; is used applying values from highlightColor
;------------------------------------------------------
query.tplMapFile = common/template.map

; Defines if SELECT function causes feature highlight
;-----------------------------------------------------
query.highlightSelected = on


; AUTOZOOM: zoom in automatically after results are displayed
; possible values: off  search  nquery (= select)
;-------------------------------------------------------------
query.autoZoom = search 

; Add button 'zoom to All Features' to result table
; - possible values: off  search  nquery (= select)
;---------------------------------------------------
query.zoomAll = search  nquery


; WINDOW DESIGN:
; Query results (identify/search) in separate WINDOW or FRAME
;-------------------------------------------------------------
;infoWin = window
;infoWin = frame
query.infoWin = dynwin


; Automatically align column contents of result tables of queries
; with regard to data type (default, numeric, currency, etc)
; algorithm in 'sorttable.js', function 'ts_alignCols(table)'
;-----------------------------------------------------------------
query.alignQueryResults = 1


; Extent buffer for zoom extent for point layers in queries
; value in map units
;-----------------------------------------------------------------
query.pointBuffer = 10000

; Extent buffer for zoom extent for non-point layers in queries
; value in a fraction of the original extent
;-----------------------------------------------------------------
query.shapeQueryBuffer = 0.02 

UI

[UI]

; Categories Style in TOC: 
; (only has effect when useCategories = 1) 
; - tree or flat
;-----------------------------------------
ui.tocStyle = tree
ui.tocStyle = flat


; Legend Style: 
; - attached: together with TOC
; - swap: swapping with TOC
;-----------------------------------------
ui.legStyle = attached
;ui.legStyle = swap

; Link of categories and groups
; - 0: in case of tree style name is link for toggle tree
; - 1: enable help/info for group name as link
; - 2: by adding an info icon
;   both using the functions 
;   showCategoryInfo() & showGroupInfo() in custom.js
;---------------------------------------------------------
;catInfoLink = 0
grpInfoLink = 0

; Use categories to thematically group layers 
; categories defined in incphp/custom.php
; works for TOC setting 'flat' and 'tree'
; 1 = yes,  0 = no
;--------------------------------------------
ui.useCategories = 1

; use checkboxes for en/disable complete categories
; with child groups/layers. 1 = yes,  0 = no
;--------------------------------------------------
ui.catWithCheckbox = 1


; Layer list (TOC) automatically updated according to scale
;-----------------------------------------------------------
ui.scaleLayers = 1

; Icon Width in pixels
;----------------------
ui.icoW = 18

; Icon Height in pixels
;-----------------------
ui.icoH = 14 

LOCALE

[LOCALE]

;=================================
; DEFAULT LANGUAGE
;---------------------------------
locale.pm_default_language = en

;===============================
; Character encoding settings 

; Default character set
; UTF-8
;------------------------
locale.defCharset = UTF-8

; if map file contains non-ASCII characters 
; eg for layer DESCRIPTION or CLASS names, set value to 1
;----------------------------------------------------------
locale.map2unicode = 1

PRINT

[PRINT]
; PDF PRINT RESOLUTION
; - Factor to increase resolution for better image quality 
;--------------------------------------------------------------
print.pdfres = 2

print.imgFormat = png
print.altImgFormat = jpeg

DOWNLOAD

[DOWNLOAD]
download.dpiLevels = 150, 200, 300

PHP

[PHP]
php.pearDbClass = MDB2