[Chameleon] XML ThemeLegend - url

Joel_Rivard joel_rivard at carleton.ca
Mon Apr 23 13:31:34 EDT 2007


Hi list

 

I'm trying to add a url to the theme name in the legend.  I'm using the XMLThemeLegend Widget and have the following ThemeFile and Renderer File:

 

ThemeFile:

 

<themes>

    <global>

        <separator name="Separator" isVisible="yes" src="http://..."/>

        <themeParams bold="true" font="Arial, Helvetica, sans-serif" size="2"   extendAbstract="true" icon="images/unknown.gif" extendContext="false"/>

        <groupParams bold="false"  font="arial" size="8.25" extendAbstract="true" icon="images/unknown.gif" visible="true"/>

    </global>

 

    <theme name="1975 (April/May) 1:7,000" visible="true" type="checkbox" url="http://airphotos.nrcan.gc.ca/photos_e.php">

      <group name="Air Photos" ABSTRACT="TBA" visible="false">

            <layer name="1975 (April/May)1:7,000 points"/>

            <layer name="1975 (April/May)1:7,000 lines"/>

      </group>

   </theme>

</themes>

 

Renderer File:

 

[repeat theme]

  [if theme_visible = "true"]

  <tr>

    <td BGCOLOR="#dddddd" width="10">[theme_input]</td>       

    <td BGCOLOR="#dddddd" colspan="3"><span class="label""><a href="[theme_url]">[theme_name]</a></span></td>        

  </tr>

  [repeat group]

    [if group_theme_id = theme_id]

      [if group_visible = "true"]

        <tr>

          <td width="10">&nbsp;</td>

          <td width="10">[group_input]</td>

          <td width="10"><img src="[group_icon]"></td>

          <td><span class="label">[group_name]</span></td>

        </tr>

      [end]

    [end]

  [end]

[end]

[end]

 

The following address is assigned to the ThemeName in the legend of my application: 

 

javascript:ContextSelector_openThemeInfo('1975 (April/May) 1:7,000', '', new Array(new Array('Air Photos', 'TBA', new Array('1975 (April/May)1:7,000 points'))));

 

Am I missing anything?

 

Thanks,

Joel

                          

Joël Rivard

Data Technician

Maps, Data & Government Information Centre

Carleton University Library

(613) 520-2600 ext.1685

joel_rivard at carleton.ca

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20070423/a40907b1/attachment.html


More information about the Chameleon mailing list