Modification to use multiple mapbooks
1. Replace php/config.php with updated version. This file starts a PHP session and looks at a session variable passed by the HTML to set which settings.ini file to use. The file is attached or on the Polk County FTP site under the August code version.
2. In the config folder, make copies of settings.ini and mapbook.ini with new names and leave them in the config folder. For example, they could be called “internal_settings.ini” and “internal_mapbook.xml”.
3. Make a copy of geomoose.html (the main HTML page) and re-name it, for example “internal.php” (note the PHP extension).
4. Open “internal.php” and add the following lines to the very top of the file:
<?php session_start(); $_SESSION['settings'] = 'internal_settings.ini'; ?>
Note the value for settings is “internal_settings.ini” – this will be what you called the file in step
5. Open “internal_settings.ini” and set the mapbook name to “internal_mapbook.ini”
6. Give it a try. You can also use different CSS files by specifying them in the internal.php file.
