The <THEME> element is used to define multiple sites or views to be displayed on
the Themes page. If themes are used, the title, tools, layers, etc. will be changed
to an alternate set defined in a site configuration XML file when the theme is selected.
If the same-extent attribute is set to true, the new site will open at the same map
extent as when called. This is useful for displaying an alternate view or data set of
the same area.
| Frequency |
Parent Elements (this element is valid within): |
|
PR+ |
<THEME-CONFIG> |
| |
|
|
|
Attributes |
Description |
|
name |
The name of the theme. Required.
|
|
description |
The description of the theme. Required.
|
|
site-config-xml |
The URL to the site configuration XML file that specifies how the theme is configured. Required.
|
|
same-extent |
Specifies whether the map extent stays the same or if it reverts to the
extent of the map service or site configuration XML when the map is reloaded.
If same-extent="true", then the extent stays the same. Optional, defaults to true.
|
| |
|
|
| Frequency |
Description (in this context) |
|
PR+ |
One or more <THEME> elements must be defined within the <THEME-CONFIG> element. |
| |
|
|
Example:
<THEME-CONFIG>
<THEME name="Ecology"
description="Displays ecological layers and related information."
site-config-xml="ecology-site.xml"
same-extent="true" />
<THEME name="Recreation"
description="Displays hunting, fishing, and campground information."
site-config-xml="recreation-site.xml"
same-extent="true" />
</THEME-CONFIG>