Hi,
 
that should work:
 
wmsLayer = new OpenLayers.Layer.WMS ( "Titel", url,
    {    
         SLD_BODY : "..." or
         SLD : sldUrl //url to http-reachable file
}
 
Arnd

  _____  

Von: [email protected]
[mailto:[email protected]] Im Auftrag von Robert
Buckley
Gesendet: Dienstag, 6. März 2012 18:26
An: [email protected]
Betreff: [OpenLayers-Users] can I define an sld style inside the map config?


Hi,

Is it possible to define the style of a wms layer from inside the
OpenLayers.Layer.WMS config?

I´m sure i´ve seen it done somewhere, but can´t find it
here....http://dev.openlayers.org/releases/OpenLayers-2.11/doc/apidocs/files
/OpenLayers/Layer/WMS-js.html

cheers,
Rob
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to