[OpenLayers-Users] Apply SLD to call a WMS to resolve overlayproblem

Arnd Wippermann arnd.wippermann at web.de
Fri Feb 15 04:40:22 PST 2013


Hi,

SLD and SLDBODY are WMS params. You can set them at layer creation 
in the params for the WMS or afterwards with

map.layers[map.aktLayer].mergeNewParams({ SLD_BODY : "...sld_body..." });
map.layers[map.aktLayer].mergeNewParams({ SLD : "...sld_url..." });

The SLD-file must reachable through internet via http. 
Clientside you can send a SLDBODY with your WMS-Request.


http://dev.openlayers.org/releases/OpenLayers-2.9.1/examples/WMSPost.html

http://gis.ibbeck.de/OLClient/examples/WMS%20World%20Map.asp
 
Arnd


-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Luís de
Sousa
Gesendet: Freitag, 15. Februar 2013 11:18
An: openlayers-users at lists.osgeo.org
Betreff: Re: [OpenLayers-Users] Apply SLD to call a WMS to resolve
overlayproblem

Hi again Pascal,

Actually this example is using the OpenLayers.Layer.Vector object, not
OpenLayers.Layer.WMS. In fact I'm also trying to look for an answer to this:

http://osgeo-org.1560.n6.nabble.com/SLD-and-SLD-body-arguments-in-WMS-GetMap
-request-tp5034495.html

Regards,

Luís



--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/Apply-SLD-to-call-a-WMS-to-resolve-overl
ay-problem-tp5032999p5034496.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users



More information about the Users mailing list