[OpenLayers-Users] mergeNewParams not working

bartvde at osgis.nl bartvde at osgis.nl
Fri Nov 13 03:18:06 EST 2009


Can you post the contents of your SLD XML?

Best regards,
Bart

> Hello,
>
> I want to apply some SLD generated on the fly through SLD_BODY parameter
> using the following code:
>
> var sld = getSLD("sld1.xsl","pilaXML.xml");
> var wms = map.getLayersByName("myLayerName")[0];
> wms.mergeNewParams({SLD_BODY: sld});
>
> but I don't get any result. The image is refreshed in the browser but
> there's no selection at all. I've got a debug file for my WMS server and I
> don't seem to get any error:
>
> [Fri Nov 13 09:00:18 2009].346000 CGI Request 1 on process 5940
>
> My SLD contains 2084 characters, it could be that the problem? Or maybe
> I'm doing something wrong. Has anybody any idea of what's happening??
>
> Thanks.
>
>
>
>
>
>
> Un saludo,
>
>
>
> ··················································································
>
>
> David Alda Fernández de Lezea
>
> Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
>
>
>
> IKT
>
> Granja Modelo s/n · 01192 · Arkaute (Araba)
>
>
> ··················································································
> Tlfnos.: 945-00-32-95                         Fax: 945-00.32.90
> ··················································································
> email: dalda at ikt.es                                web: www.ikt.es
> <http://www.ikt.es/>
> ··················································································
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>





More information about the Users mailing list