Hi all,

I am having two particular problems with my mapserver; I've been checking through the lists and documentation, however maybe an outside perspective is needed... any pointers are appreciated!

1) One of the layers in my map file displays unicode characters (e.g. Ä, Ç, Ë), however, odd symbols appear in the Chameleon app in their place. Is this language / unicode conversion supported in MapServer? I didn't find anything in the Chameleon list archives which suggested a fix. Is there a method of enabling its support?

2) In the past I had had problems with Legend template script disabling layers upon updating the webpage, however now I am having problems with the opposite... a particular layer will not hide after an update when its layer is unchecked! I've ensured that the layer status is set to 'ON' in the map file. My Legend template code follows.

Best regards,
- Peter




[leg_group_html]
[if name=SHOWINLEGEND oper=eq value="yes"]
   <tr>
       <td colspan=4 bgcolor=#000000><b>[leg_group_name]</b></td>
   </tr>
[/if]
[/leg_group_html]

[leg_layer_html order_metadata=legend_order opt_flag=15]

   [if name=layer_group oper=eq value="Base"]
       [if name=layer_status oper=eq value=1]
<input type="hidden" name="legendlayername[]" value="[leg_layer_name]"]
       [/if]
       [if name=layer_status oper=eq value=2]
<input type="hidden" name="legendlayername[]" value="[leg_layer_name]"]
       [/if]
   [/if]

   [if name=SHOWINLEGEND oper=eq value="yes"]
           <tr bgcolor="#000000">
               <td align="center" width=16>
<input type="checkbox" name="legendlayername[]" value="[leg_layer_name]"
                       [if name=layer_status oper=eq  value=1]CHECKED[/if]
                       [if name=layer_status oper=eq value=2]CHECKED[/if]>
               </td>
<td>
               [if name=HIDEICON oper=neq value="yes"]
<img src="[leg_icon width=16 height=16]" width="16" height="16">
               [/if]
               <span class="label">[leg_layer_name]</span>
               </td>
           </tr>
   [/if]
[/leg_layer_html]

Reply via email to