[Users] wms_title not used
Bart van den Eijnden
bartvde at boundlessgeo.com
Wed Oct 2 22:23:28 CEST 2013
Can you show us some code or more details on what you use?
Are you using a WMSCapabilitiesStore? Since it should use the title and fallback to the name:
values.layer = new OpenLayers.Layer.WMS(
layer.title || layer.name, url, params, options
);
Best regards,
Bart
Bart van den Eijnden
Front-end Developer | Boundless
@boundlessgeo
On Oct 2, 2013, at 4:31 AM, Raffaele Morelli <raffaele.morelli at GMAIL.COM> wrote:
> Hi,
>
> I am developing a web app with GeoExt and using a layer tree.
>
> Layers are fetched from a WMS server (mapserver) but layers names in the tree are used instead of wms_title parameter in the mapfile.
>
> 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].
>
> I know I can override mapserver recommendation but my question is: why GeoExt does not use wms_title parameter in the mapfile?
>
> Regards
> /raffaele
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20131002/5d60e1dc/attachment.htm
More information about the Users
mailing list