Configuration

Main configuration of mappingwidgets is done in configs/settings.inc.php; this files in included by MappingWidgets.php. The MAPPINGWIDGETS_DIR constant is automatically set to the directory that contains MappingWidgets.php.

The main differences in the settings depend on the operating system (Linux or Windows) and whether mappingwidgets is installed separately or under the Carto module.

In settings.inc.php a number of constants can be set:

  • SMARTY_DIR -
  • MAPPINGWIDGETS_BASE_URI - uri to htdocs folder contains skins resources and javascript files
  • MAPPINGWIDGETS_WIDGETS_URI - used for calls to Server_ widgets
  • MAPPINGWIDGETS_TMP_DIR -
  • MAPPINGWIDGETS_COMPILE_DIR -
  • MAPPINGWIDGETS_CACHE_DIR -
  • MAPPINGWIDGETS_IMAGEPATH - same as IMAGEPATH constant in WEB section of map files (used for Server_ widgets)
  • MAPPINGWIDGETS_IMAGEURL - same as IMAGEURL constant in WEB section of map files (used for Server_ widgets)
  • MAPPINGWIDGETS_TMP_MAP_DIR -
  • -