Contents
Login Register Wishes Forum About
Language Reference » Image Maps » dumpImageMap
Help topics
Latest updates
4574d  replaceImageMapTitle
4574d  replaceImageMapValues
4574d  createFunctionSerie
4574d  setAbsicssaPosition
4574d  negateValues
Toolbox
  Download as PDF
  Print this page
  Share this page
  Create an account
  Feed the updates!
Google AdSense
dumpImageMap - Dump your image map for client side processing

This function allows you to retrieve your image map so it can be processed client side.

When an image map is dumped using this function, the temporary file is deleted from the web server disk.


When the image map is dumped using this function the script stops.

Calling this function
dumpImageMap($Name="pChart",$StorageMode=IMAGE_MAP_STORAGE_SESSION,$UniqueID="imageMap",$StorageFolder="tmp")
Where :

Name is the name of your image map.
UniqueID is the unique ID of image map (will be used as the file name if recording on disk).
StorageFolder is the name of the temporary folder where is stored the image map (if recording on disk).

The image map can be stored in two ways depending of the value given to the StorageMode parameter :

IMAGE_MAP_STORAGE_SESSION to store the coordinates in the user Session.
IMAGE_MAP_STORAGE_FILE to store the coordinates on the server disk.

Sample script

When this script will be called given the ImageMap parameter (either thought a GET or POST variable), it returns the associated image map :
 /* Library settings */
 define("CLASS_PATH", "../../../class");
 define("FONT_PATH", "../../../fonts");

 /* pChart library inclusions */
 include(CLASS_PATH."/pData.class.php");
 include(CLASS_PATH."/pDraw.class.php");
 include(CLASS_PATH."/pImage.class.php");

 /* Create the pChart object */
 $myPicture = new pImage(700,230,$MyData);

 /* Retrieve the image map */
 if (isset($_GET["ImageMap"]) || isset($_POST["ImageMap"]))
  $myPicture->dumpImageMap("ImageMapBarChart",IMAGE_MAP_STORAGE_FILE,"BarChart","../tmp");
Last updated on 08/04/2011 
by Jean-Damien 
Linked resources
  There is no linked topic yet.
Community comments
  No comments have been posted yet.
© Copyrights
Components used on this web site : Famfamfam icons has been made by Mark James, Rounded corners lite has been coded by Cameron Cooke and Tim Hutchison, SyntaxHighlighter has been written by Alex Gorbatchev. pChart and this web site have been created by Jean-Damien POGOLOTTI. This documentation contains 185 pages and 56 comments. 415 users have registered. This page has been rendered in 0,19 seconds. Wiki revision 1.37.