MapTools.org

[Chameleon] XMLThemeLegend

Christopher R. Thorne thorne@dmsolutions.ca
Tue, 09 Dec 2003 17:21:00 -0500
This is a multi-part message in MIME format.
--------------080702020601080906020203
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Sorry,
No documentation has been produced for this widget. It is still under 
development and QA review.

But here is the xml file and renderer file from the hawaii demo.
it would be your best help

here is also the widget definition found in the hamaii demo.

<cwc2 type="XMLThemeLegend" >
   <selection name="Hawaii_legend"
    template="hawaii_demo.html"
    themefile="hawaii_theme.xml"
    contextfile="hawaii.map"
    rendererfile="hawaii_renderer.html"/>
</cwc2>

Thanks,
Chris

Matt Frost wrote:

> Is there any documentation available for the XMLThemeLegend widget? Even
> just the list of required arguments would be nice, but the XML file from the
> Hawaii demo would also help.
> Thanks,
> Matt Frost
> 
-- 
Christopher R. Thorne
GIS Product Specialist,
DM Solutions Group Inc.

http://www.dmsolutions.ca
email: thorne@dmsolutions.ca
Phone: (613) 565-5056 ext.22
Fax :  (613) 565-0925
------------------------------

--------------080702020601080906020203
Content-Type: text/xml;
 name="hawaii_theme.xml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="hawaii_theme.xml"

<themes>
    <global>
        <separator name="Separator" isVisible="yes" src="http://..."/>
        <themeParams bold="true" font="Arial, Helvetica, sans-serif" size="2"   extendAbstract="true" icon="images/tree_theme.gif" extendContext="false"/>
        <groupParams bold="false"  font="arial" size="8.25" extendAbstract="true" icon="images/tree_layers.gif" visible="true"/>
    </global>

    <theme name="Base Layers" type="radio" ABSTRACT="Background Surface Layers">
        <group name="Relief" ABSTRACT="Shaded Relief of the Hawaii Landscape" visible="true">
            <layer name="oahu_hillshade"/>
            <layer name="haw_hillshade"/>
            <layer name="kah_hillshade"/>
            <layer name="kau_hillshade"/>
            <layer name="lan_hillshade"/>
            <layer name="mau_hillshade"/>
            <layer name="mol_hillshade"/>
            <layer name="nii_hillshade"/>
            <layer name="contours_relief_overlay"/>
            <layer name="elevation_contours_1"/>
            <layer name="elevation_contours_2"/>            
        </group>
        <group name="Land Use" ABSTRACT="Landcover Classification" visible="true">
            <layer name="landuse_general"/>
            <layer name="landuse_detailed"/>
            <layer name="areas_of_interest"/>
            <layer name="parks_areas"/>
            <layer name="islelet_pearl_harbour"/>
        </group>
    </theme>
    
    
    <theme name="Recreation" type="checkbox">
        <group name="Beach" visible="true" icon="./images/beach.png">
	    <layer name="Beach_rec"/>
        </group> 
        <group name="Camping" visible="true" icon="./images/camp.png">
	    <layer name="Camp_rec"/>
            <layer name="camping_lan_relief_overlay"/>
        </group>       
        <group name="Garden" visible="true" icon="./images/garden.png" >
	    <layer name="Garden_rec"/>
        </group>
        <group name="Golf Course" visible="true" icon="./images/golf.png">
	    <layer name="Golf_rec"/>
            <layer name="golf_lan_relief_overlay"/>
        </group> 
        <group name="Monument" visible="true" icon="./images/monument.png">
	    <layer name="Monuments_rec"/>
        </group> 
        <group name="Naval History" visible="true" icon="./images/ship.png">
	    <layer name="Naval_rec"/>
        </group>
        <group name="Park" visible="true" icon="./images/park.png">
            <layer name="Parks_rec"/>
            <layer name="parks_areas_overlay"/>
            <layer name="parks_lan_relief_overlay"/>
        </group>            
        <group name="Stadium" visible="true" icon="./images/stadium.png">
	    <layer name="Stadiums_rec"/>
        </group>    
        <group name="Zoo" visible="true" icon="./images/zoo.png" >
	    <layer name="Zoo_rec"/>
        </group>
    </theme>

    <theme name="Institutions" type="checkbox" >
        <group name="Building" visible="true" icon="./images/building.png">
            <layer name="Buildings_inst"/>
        </group>
        <group name="Church" visible="true" icon="./images/church.png">
            <layer name="Church_inst"/>
        </group>
        <group name="Hospital" visible="true" icon="./images/hospital.png">
            <layer name="Hospitals_inst"/>
        </group>
        <group name="Observatory" visible="true" icon="./images/observatory.png">
            <layer name="Observ_inst"/>
        </group>
        <group name="School" visible="true" icon="./images/school.png">
            <layer name="Schools_inst"/>
        </group>
    </theme>
    <theme name="Transportation" type="checkbox">
        <group name="Airport" visible="true" icon="./images/airport.png">
            <layer name="Airports_trans"/>
        </group>
        <group name="Lighthouse" visible="true" icon="./images/lighthouse.png">
            <layer name="Lighthouse_trans"/>
        </group> 
        <group name="Marinas &amp; Harbor" visible="true" icon="./images/marina.png">
            <layer name="Marinas_trans"/>
        </group> 
    </theme>
    <theme name="Natural Landforms" type="checkbox" >
        <group name="Bay" visible="true" icon="./images/bay.png">
            <layer name="Bay_Landforms"/>
        </group> 
        <group name="Cape" visible="true" icon="./images/cape.png">
	    <layer name="Cape_Landforms"/>
        </group>
        <group name="Crater" visible="true" icon="./images/crater.png">
            <layer name="Crater_Landforms"/>
        </group>
        <group name="Lava" visible="true" icon="./images/lava.png">
            <layer name="Lava_Landforms"/>
        </group>
        <group name="Summit" visible="true" icon="./images/summit.png">
            <layer name="Summit_Landforms"/>
        </group> 
        <group name="Waterfall" visible="true" icon="./images/waterfall.png">
            <layer name="Waterfall_Landforms"/>
        </group>        
    </theme>    
</themes>
--------------080702020601080906020203
Content-Type: text/html;
 name="hawaii_renderer.html"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="hawaii_renderer.html"

[repeat theme]
  <tr>
    <td BGCOLOR="#CEDFE8">[theme_input]</td>
      [if theme_numlayers = "0"]
        <td colspan="2">[theme_name]</td>
      [else]
        <td BGCOLOR="#CEDFE8" colspan="3"><B><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2">[theme_name]</font></b></td>
      [end]
  </tr>
  [repeat group]
    <tr>
    [if group_theme_id = theme_id]
      [if group_visible = "true"]
    <td>&nbsp;</td>
    <td>[group_input]</td>
    <td><img src="[group_icon]"></td>
        [if group_numlayers = "0"]
    <td colspan="2">[group_name]</td>
        [else]
    <td><FONT FACE="Arial, Helvetica, sans-serif" SIZE="1">[group_name]</font></td>
        [end]
  </tr>
      [end]
    [end]
  [end]
[end]

--------------080702020601080906020203--




This archive was generated by Pipermail.