en-ca 1999-12-31 $id:$ Doc_Builder DM Solutions Group Inc. chameleon@lists.maptools.org Christopher R. Thorne DM Solutions Group Inc. chameleon@lists.maptools.org Paul Spencer DM Solutions Group Inc. chameleon@lists.maptools.org MapTitle TBD Label Widgets 2.0 2005-01-10 TECHRELEASE Paul Spencer DM Solutions Group Inc. chameleon@lists.maptools.org The MapTitle widget is used to display the title of the map. The title comes from either the OGC context or MapServer map file loaded into the application. The primary reason to use this is for applications that allow the user to load arbitrary OGC contexts, or with a template that is designed to be reused with multiple map files without requiring changes to that template. The map name is extracted from either the MapServer map file (*.map) or the OGC Context map file (*.cml). If the map name is not defined, then nothing is displayed. This is a label showing a descriptive title for the map being viewed in the application. If the application allows uploading of Context files or changing to a different map file, then the title may change to reflect the currently loaded Context or map. If one of the functions of the mapping application is to show different maps, this widget is useful to indicate to the user the title of the current map. <CWC2 TYPE="MapTitle" ENABLED="[TRUE|FALSE]" FORMINDEX="[0 < integer]" VISIBLE="[TRUE|FALSE]" <!-- MapTitle Attributes--> WIDGETCLASS="[string]" WIDGETSTYLE="[string]"/> In most cases, the following is all you need to define. <cwc2 type="MapTitle"/> To define a specific CSS style for the output map title text, use the widgetstyle or widgetclass attributes. <cwc2 type="MapTitle" widgetstyle="font-family:Ariel; font-size:14px;"/> Hawaii Demo www.mapsherpa.com/hawaii2/ The Hawaii Demo uses the latest 1.99 Chameleon version. Base WIDGETCLASS string Widget Only NULL Specify a CSS class to use on the title. WIDGETSTYLE string Widget Only NULL Specify a CSS style to use on the title.