[Users] wms_title not used

Raffaele Morelli raffaele.morelli at gmail.com
Thu Oct 3 08:07:58 CEST 2013


Here it is a test url
http://cen.isprambiente.it/~rmorelli/ol/

WMS url is the same, two layers are being fetched: "linee" and
"sostegni_elf".

As you can see "sostegni_elf" does not use wms_title in the GetCapabilities
response (should be "Sostegni ELF").

BTW "Linee" an "linee" both works, so case insensitive.

Am I missing something? Code is taken from GeoExt examples page (mostly
layer tree). Must say that I am quite new to GeoExt.

Regards
/raffaele



2013/10/2 Bart van den Eijnden <bartvde at boundlessgeo.com>

> 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 <http://boundlessgeo.com/>
> @boundlessgeo <http://twitter.com/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/20131003/095f61e3/attachment.htm 


More information about the Users mailing list