<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; ">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 || layer.name, url, params, options</div><div> );</div></div><div><br></div><div>Best regards,</div><div>Bart</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 2, 2013, at 4:31 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">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>
_______________________________________________<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></body></html>