Added by Cameron Shorter, last edited by Cameron Shorter on Oct 03, 2005

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.

If you want to install Mapbuilder somewhere other than http://localhost/mapbuilder/demo/simple you will need make the following changes. Note that all URLs can be relative or absolute.

  • Move index.html, to your target Mapbuilder directory:
  • Move config.xml and context.xml to a suitable location, probably the same directory as index.html

mv mapbuilder/demo/simple/ /var/www/html

  • If needed, move the Mapbuilder lib directory to your target location.
  • Make sure index.html references config.xml . Make sure all script and stylesheet references reference the correct files.
index.html
<link rel='StyleSheet' type='text/css' href='../../lib/skin/default/docsStyle.css'>
    ...
    <script>
      // URL of Mapbuilder configuration file.
      var mbConfigUrl='config.xml';
    </script>
    <script type="text/javascript" src="../../lib/Mapbuilder.js"></script>
  • Make sure config.xml references your context.xml (often called something else, eg atlasWorld.xml).
config.xml
<models>
    <Context id="mainMap">
      <defaultModelUrl>atlasWorld.xml</defaultModelUrl>