Installation and configuration

Requirements:

  • For handling archives, the mapping kit needs the path to a zip utility, e.g. 7-Zip. Configuration is in the ?q=admin/mappingkit/general page.
  • Additional php extensions: curl, xsl, mapscript. The Mapscript extension is needed for the Mapserver module.

Installation steps:

  • Unpack the mappingkit-xx.tar.gz archive under sites/all/modules.
  • Enable e.g. the modules mapcontext and openlayers.
  • On the ?q=admin/settings/file-system settings page, set the temporary directory to the file system path + /temp, e.g. sites/default/files/temp.
  • On the ?q=admin/mappingkit/mapclient settings page, set the default map client to 'OpenLayers'. The internal mapclient only displays a rectangular box instead of a map.
  • On the ?q=admin/user/permissions page you may want to assign the 'access mapcontext' privilege for viewing map contexts to anonymous users.
  • Test the module by adding a map context with e.g. width=360, height=180, a bounding box with EPSG:4326,-180,-90,180,90, and a layer with server=http://www2.demis.nl/WMS/wms.asp?wms=WorldMap, version=1.0.0, layer names=Bathymetry,Countries,Topography,Hillshading, layer title=Topography.
  • Create content by adding a page with the following body (replace 1 with the node id of the context node from the previous step) and with input format Inline maps:

    Text before the map.
    [map context="node/1/context" /]
    Text following the map.