Themes and Legends
Map legends are created from themes in the SWD.
We recommend retaining the original Cadcorp SIS WebMap theme (xtheme-gray.css) and create a new theme by copying the style sheet and the image folder (\img\gray).
TIP: For more information see also Add Theme
The legend area is automatically defined during printing.
Sprite images (used for tabs and controls in a Cadcorp SIS WebMap site) are defined by an image in the theme style sheet.
.x-tab-strip-top .x-tab-right, .x-tab-strip-top .x-tab-left, .x-tab-strip-top .x-tab-strip-inner{ background-image: url(../img/gray/tabs/tabs-sprite.gif); }
Sprite images may contain several sections for different sides and states of control items. It is recommended to modify existing images and not change the dimension of the individual sections.
The location of state sections within a background sprite image are defined in the ext-all.css.
.x-tab-strip-top .x-tab-strip-over .x-tab-strip-inner { background-position:0 -251px; } .x-tab-strip-top .x-tab-strip-active .x-tab-strip-inner { background-position: 0 -151px; }
REMEMBER: The legend will be used in its entirety. When creating a legend, ensure its size does not obscure the map.