There are installations that do not use the PHP services provided with GeoMOOSE. If the reader is truly intereted in this document then they are probably one of those exact users. This how to is written assuming you have a strong sense of how your server is configured and how the GeoMOOSE services system functions in your environment.
The mapbook is the all-knowing configuration file for GeoMOOSE. All of the built-in services use this file as the center definition for the application. There are also a few non-philosophical reasons why getmapbook.php exists:
[/soapbox]
As stated in the introduction, if you’re doing this, you should know what you’re doing.
Here are a couple of reasons to override the mapbook setting:
The ‘mapbook’ attribute of CONFIGURAITON is the only one that cannot be overriden after the mapbook is loaded. Thus, some small changes need to be made to the geomoose.html file. Find the line that includes “compiled.js” and add the URL to your mapbook afterwards:
<script type="text/javascript" src="compiled.js"></script>
<script type="text/javascript">
CONFIGURATION['mapbook'] = 'mapbook.xml';
</script>
It is possible to use the other PHP services with a mapbook over-ride present but they still need to know the location of that mapbook. The settings.ini file in the conf/ director contains such information.