|
| <MAP-CONFIG> | Tree View | Discussion Forum |
| IMF Developer's Guide » Map Configuration » <MAP-CONFIG> |
A map configuration XML file is used to specify the layers that are in a map. The same format is used to define the main map and the index map in separate XML files.
The <MAP-CONFIG> element is the topmost tag of a map configuration XML file. The elements of the map configuration file must be enclosed in a <MAP-CONFIG> element tag:
<?xml version="1.0" encoding="UTF-8"?> <MAP-CONFIG> <!-- all your configuration stuff goes here --> </MAP-CONFIG>
Note that the map configuration file elements must appear in sequence. For best results, and to avoid making errors when working with the configuration files, use an XML editing tool like XMLSPY to create, edit, and validate your XML against the schema for this file format.
The current schema for the map configuration XML is located at:
.. or on your IMF server in the schema directory within the IMF installation direcory.Your XML documents can be validated against the schema on Moxi Media's server, or a copy of the file installed on yours. To specify that the file be validated when working with an XML editor, when creating a set of configuration files for installation in a subdirectory of your sites directory, use the following format:
<?xml version="1.0" encoding="UTF-8"?>
<MAP-CONFIG xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../schema/map-config.xsd">
<!-- all your configuration stuff goes here -->
</MAP-CONFIG>
|
|