<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">There is no GetCapabilities request involved here, the application isn't using WMS GetCapabilities at all.<div><br></div><div>What happens is that the layers param is split on "," and the strings are taken from there.</div><div><br></div><div>If possible use separate WMS layers (so you can define the title on the OpenLayers Layer object) and group them together in the tree instead of using a LayerParamLoader.</div><div><br></div><div>This might not be a trivial exercise though, for some inspiration you could look here:</div><div><br></div><div><a href="https://github.com/boundlessgeo/gxp/blob/master/src/script/plugins/LayerTree.js">https://github.com/boundlessgeo/gxp/blob/master/src/script/plugins/LayerTree.js</a></div><div><br></div><div>Best regards,</div><div>Bart</div><div><div><br><div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Bart van den Eijnden</div><div>Front-end Developer | <a href="http://boundlessgeo.com/">Boundless</a></div><div><a href="http://twitter.com/boundlessgeo">@boundlessgeo</a></div></div>
</div>
<br><div><div>On Oct 3, 2013, at 12:07 AM, Raffaele Morelli <<a href="mailto:raffaele.morelli@GMAIL.COM">raffaele.morelli@GMAIL.COM</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Here it is a test url<div><a href="http://cen.isprambiente.it/~rmorelli/ol/">http://cen.isprambiente.it/~rmorelli/ol/</a><br></div><div><br></div><div>WMS url is the same, two layers are being fetched: "linee" and "sostegni_elf".</div>
<div><br></div><div>As you can see "sostegni_elf" does not use wms_title in the GetCapabilities response (should be "Sostegni ELF").</div><div><br></div><div>BTW "Linee" an "linee" both works, so case insensitive.</div>
<div><br></div><div>Am I missing something? Code is taken from GeoExt examples page (mostly layer tree). Must say that I am quite new to GeoExt.</div><div><br></div><div>Regards</div><div>/raffaele<br></div><div><br></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/2 Bart van den Eijnden <span dir="ltr"><<a href="mailto:bartvde@boundlessgeo.com" target="_blank">bartvde@boundlessgeo.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Can you show us some code or more details on what you use?<div><br></div><div>Are you using a WMSCapabilitiesStore? Since it should use the title and fallback to the name:</div><div><br></div>
<div><div> values.layer = new OpenLayers.Layer.WMS(</div><div> layer.title || <a href="http://layer.name/" target="_blank">layer.name</a>, url, params, options</div><div> );</div>
</div><div><br></div><div>Best regards,</div><div>Bart</div><div><br><div>
<div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-wrap:break-word;word-spacing:0px">
<div>Bart van den Eijnden</div><div>Front-end Developer | <a href="http://boundlessgeo.com/" target="_blank">Boundless</a></div><div><a href="http://twitter.com/boundlessgeo" target="_blank">@boundlessgeo</a></div></div>
</div>
<br><div><div><div class="h5"><div>On Oct 2, 2013, at 4:31 AM, Raffaele Morelli <<a href="mailto:raffaele.morelli@GMAIL.COM" target="_blank">raffaele.morelli@GMAIL.COM</a>> wrote:</div><br></div></div><blockquote type="cite">
<div><div class="h5"><div dir="ltr">Hi,<div><br></div><div>I am developing a web app with GeoExt and using a layer tree.</div><div><br></div><div>Layers are fetched from a WMS server (mapserver) but layers names in the tree are used instead of wms_title parameter in the mapfile.</div>
<div><br></div><div>Problem is that layers names are somewhat "ugly" due to mapserver recommendation that [quote] a layer name should not contain spaces, special characters and not begin with a number [/quote].</div>
<div><br></div><div>I know I can override mapserver recommendation but my question is: why GeoExt does not use wms_title parameter in the mapfile?</div><div><br></div><div>Regards</div><div>/raffaele</div></div></div></div>
_______________________________________________<br>Users mailing list<br><a href="mailto:Users@geoext.org" target="_blank">Users@geoext.org</a><br><a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div></div></blockquote></div><br></div>
_______________________________________________<br>Users mailing list<br><a href="mailto:Users@geoext.org">Users@geoext.org</a><br>http://www.geoext.org/cgi-bin/mailman/listinfo/users<br></blockquote></div><br></div></div></body></html>