RV: [Chameleon] Problem in the link of the layers

Julien-Samuel Lacroix jlacroix at mapgears.com
Fri Mar 23 10:42:28 EST 2007


Hi,
I checked in the code and it seems this issue was fixed in Chameleon 
2.4. Just comment this line out (and the if()).

Julien

Ines wrote:
> Yes, I send the code of the layer_template. Every thing you can need,
> please, tell me.
> I have 3 layer_template.html:
> layer_template-en.html
> layer_template-es.html
> layer_template-pt.html
> 
> because I have traduced the site in 3 languages. I send you the code of
> layer_template-en.html, and layer_template-es.html
> 
> layer_template-en.html:
> -----------------------
> 
> [leg_layer_html order=ascending opt_flag=15]
>   <tr bgcolor="#ffffff">
>     <td><input type="radio" name="my_legend"
> onclick="CWCSelectLayer('[leg_layer_name]', true)"[if name=selected value=1]
> CHECKED[/if] ></td>
>     <td align="center" width=20><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><a href="[leg_icon width=818 height=900]" target="_blank"><img
> src="[leg_icon width=20 height=18]" width="20" height="20"
> border="0"></a></td>
>     [if name=LAYER_EN oper=isnull]
> 
> 
> 	<td><a href="#"
> onclick="javascript:LegendTemplateLayerInfo('[leg_layer_name]');"><span
> class="label">[metadata name=WMS_TITLE]</span></a></td>
> 
>   </tr>
>     [/if]
>     [if name=LAYER_EN oper=isset]
>     <td><a href="#"
> onclick="javascript:LegendTemplateLayerInfo('[leg_layer_name]');"><span
> class="label">[metadata name=LAYER_EN]</span></a></td>
>   </tr>
>     [/if]
> [/leg_layer_html]
> 
> -------------------------------------------------------------
> 
> layer_template-es.html:
> -----------------------
> 
> [leg_layer_html order=ascending opt_flag=15]
>   <tr bgcolor="#ffffff">
>     <td><input type="radio" name="my_legend"
> onclick="CWCSelectLayer('[leg_layer_name]', true)"[if name=selected value=1]
> CHECKED[/if] ></td>
>     <td align="center" width=20><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><a href="[leg_icon width=818 height=900]" target="_blank"><img
> src="[leg_icon width=20 height=18]" width="20" height="20"
> border="0"></a></td>
>     [if name=LAYER_ES oper=isnull]
> 
> 	<td><a href="#"
> onclick="javascript:LegendTemplateLayerInfo('[leg_layer_name]');"><span
> class="label">[metadata name=WMS_TITLE]</span></a></td>
> 
>   </tr>
>     [/if]
>     [if name=LAYER_ES oper=isset]
>     <td><a href="#"
> onclick="javascript:LegendTemplateLayerInfo('[leg_layer_name]');"><span
> class="label">[metadata name=LAYER_ES]</span></a></td>
>   </tr>
>     [/if]
> [/leg_layer_html]
> 
> 
> 
> Thanks, Ines
> 
> 
> 
> 
> 
> 
> -----Mensaje original-----
> De: Julien-Samuel Lacroix [mailto:jlacroix at mapgears.com]
> Enviado el: jueves, 22 de marzo de 2007 12:02
> Para: Ines
> CC: chameleon at lists.maptools.org
> Asunto: Re: RV: [Chameleon] Problem in the link of the layers
> 
> 
> Can you provide us your legend_template file too?
> 
> Julien
> 
> Ines wrote:
> 
>>I am not sure because I didn´t develope the legend. Another person did it.
>>Now I have to fix this problem. In the template.html code, I have this 2
>>cwc2 tags:
>>
>>1)
>><cwc2 type="Link" linktype="javascript" jsfunction="ShowLegendLayer"
>>styleresource="Tabs" Image="icons/[$stl_legend$]"
> 
> ImageTip="[$stl_tlegend$]"
> 
>>toolset="SideTabs" default="true">
>>              <image state="normal"/>
>>              <image state="hover"/>
>>              <image state="selected"/>
>>          </cwc2>
>>
>>2)
>><cwc2 type="LegendTemplate" visible="true" embedded="true"
>>template="[$legend_template$]" popupstyleresource="TextButtons"
>>popupwidth="500" popupheight="400" status="false" menubar="false"/>
>>
>>I think it could be the Legend Template widget. I have a folder called
>>"LegendTemplate" in my folder "Widgets".
>>
>>Thank you very much.
>>Ines
>>
>>
>>
>>
>>-----Mensaje original-----
>>De: Julien-Samuel Lacroix [mailto:jlacroix at mapgears.com]
>>Enviado el: miércoles, 21 de marzo de 2007 16:37
>>Para: Ines
>>CC: chameleon at lists.maptools.org
>>Asunto: Re: [Chameleon] Problem in the link of the layers
>>
>>
>>Hi,
>>Which widget are you using to build your legend?
>>
>>Julien
>>
>>Ines wrote:
>>
>>
>>>Hello, I am having problems when I click on the name of my Layers in the
>>>Legend.
>>>
>>>I have several layers. Some layers have at the left of the name an image.
>>>When I click on the image, it opens a new window with the image big. But
>>>when I click on the name of the layers in the legend, I have the same
>>
>>error
>>
>>
>>>in all the layers:
>>>
>>>Fatal error: Call to undefined function: seterrormanager() in
>>>D:\ms4w\apps\wmsviewer\htdocs\common\phpwms\layerinfo_body.phtml on line
>>
>>38
>>
>>
>>>¿Could you help me to solve this problem?
>>>
>>>
>>>Thank You very much!
>>>Ines
>>>
>>>_______________________________________________
>>>Chameleon mailing list
>>>Chameleon at lists.maptools.org
>>>http://lists.maptools.org/mailman/listinfo/chameleon
>>
>>
>>--
>>Julien-Samuel Lacroix
>>Mapgears
>>http://www.mapgears.com/
>>
>>_______________________________________________
>>Chameleon mailing list
>>Chameleon at lists.maptools.org
>>http://lists.maptools.org/mailman/listinfo/chameleon
> 
> 
> --
> Julien-Samuel Lacroix
> Mapgears
> http://www.mapgears.com/
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon

-- 
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/


More information about the Chameleon mailing list