[Chameleon] Hawaii Demo

Robin Robin querada499 at hotmail.com
Tue Sep 14 12:34:10 EDT 2004


thanks.  I think the xml legend with DHTML is what I am looking for.  Is 
there any special way to add individual layers to the legend instead of just 
groups?  I tried modifying the sample_themes.xml and sample_renderer.html by 
adding a <layer param .../> in the global section of the sample_themes and a 
repeat layer section:

[repeat layer]
  <tr>
    <td width="20">&nbsp;</td>
    <td width="20">[layer_input]</td>
    <td><span class="label">[layer_name]</span></td>
  </tr>
[end]

within the repeat group section of the sample_renderer

This causes errors:
Notice: Undefined index: layer in 
C:\ms4w\apps\chameleon\htdocs\TemplateProcessor.php(236) : eval()'d code on 
line 163


I'm also wondering if it is necessary to have a radio button like in the 
other legends to indicate which layer is active?  If this is selected, this 
means it is the layer which will be queried if you use the identify button 
right?  If there isn't a button to select, what gets queried?

Thanks

Robin


>From: Paul Spencer <pagameba at magma.ca>
>Reply-To: pspencer at dmsolutions.ca
>To: Robin Robin <querada499 at hotmail.com>
>CC: chameleon at lists.maptools.org
>Subject: Re: [Chameleon] Hawaii Demo
>Date: Mon, 13 Sep 2004 22:20:29 -0400
>
>Robin,
>
>we can get you the legend used in that example if you wish.  There are two 
>legend widgets that are available in Chameleon ...
>
>LegendTemplate
>
>this widget provides access to the HTML Legend Template functionality of 
>MapServer.  There is considerable flexibility in this approach since it 
>allows you to generate text in any format you wish ... I have seen some 
>very cool DHTML implementations that provide the kind of multi-level 
>grouping that provide the tree-like functionality you are interested in.
>
>The limitation of the HTML Legend Template is that MapServer only supports 
>one level of grouping and it is based directly on the map file.
>
>XMLThemeLegend
>
>This widget avoids the use of MapServer's legend template and was written 
>for use in an OGC environment since the portable document format for OGC 
>applications (Web Map Context) does not support any type of grouping or 
>themes.
>
>This widget allows you to define groups of layers and place them in themes, 
>and uses a similar templating system as the HTML Legend Template.  It is 
>way more flexible, but also more complicated (and there is far less 
>documentation right now).
>
>Because of the templating approach, you can also create complex DHTML 
>effects with this widget.
>
>HTH ...
>
>Paul
>
>Robin Robin wrote:
>
>>Does anyone know if the code is available for the Hawaii Demo 
>>(http://www.mapsherpa.com/hawaii2/)?  I am especially interested in the 
>>legend template
>>
>>Thanks
>>
>>Robin
>>
>>_________________________________________________________________
>>Protect your PC - get McAfee.com VirusScan Online 
>>http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>>
>>_______________________________________________
>>Chameleon mailing list
>>Chameleon at lists.maptools.org
>>http://lists.maptools.org/mailman/listinfo/chameleon
>>
>
>--
>  -----------------------------------------------------------------
>|Paul Spencer                           pspencer at dmsolutions.ca   |
>|-----------------------------------------------------------------|
>|Applications & Software Development                              |
>|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
>  -----------------------------------------------------------------
>

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail



More information about the Chameleon mailing list