<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19190"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=734044017-06032012><FONT color=#0000ff
size=2 face=Arial>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=734044017-06032012><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=734044017-06032012><FONT color=#0000ff
size=2 face=Arial>that should work:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=734044017-06032012></SPAN><SPAN
class=734044017-06032012><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=734044017-06032012><FONT color=#0000ff
size=2 face=Arial>wmsLayer = new <FONT color=#000000>OpenLayers.Layer.WMS (
"Titel", url,</FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=734044017-06032012><FONT size=2
face=Arial> { </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=734044017-06032012><FONT size=2
face=Arial> SLD_BODY : "..."
or</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=734044017-06032012><FONT size=2
face=Arial> SLD : sldUrl //url
to http-reachable file</FONT></SPAN></DIV>
<DIV><SPAN class=734044017-06032012></SPAN><FONT size=2
face=Arial>}</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=734044017-06032012>Arnd</SPAN></FONT></DIV>
<DIV><BR></DIV>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Von:</B> openlayers-users-bounces@lists.osgeo.org
[mailto:openlayers-users-bounces@lists.osgeo.org] <B>Im Auftrag von </B>Robert
Buckley<BR><B>Gesendet:</B> Dienstag, 6. März 2012 18:26<BR><B>An:</B>
users@openlayers.org<BR><B>Betreff:</B> [OpenLayers-Users] can I define an sld
style inside the map config?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV
style="BACKGROUND-COLOR: #fff; FONT-FAMILY: arial, helvetica, sans-serif; COLOR: #000; FONT-SIZE: 10pt">
<DIV>Hi,</DIV>
<DIV><BR></DIV>
<DIV>Is it possible to define the style of a wms <SPAN
style="FONT-SIZE: 10pt">layer from inside the OpenLayers.Layer.WMS
config?</SPAN></DIV>
<DIV><BR></DIV>
<DIV>I´m sure i´ve seen it done somewhere, but can´t find it here....<A
style="FONT-SIZE: 10pt"
href="http://dev.openlayers.org/releases/OpenLayers-2.11/doc/apidocs/files/OpenLayers/Layer/WMS-js.html">http://dev.openlayers.org/releases/OpenLayers-2.11/doc/apidocs/files/OpenLayers/Layer/WMS-js.html</A></DIV>
<DIV><BR></DIV>
<DIV>cheers,</DIV>
<DIV>Rob</DIV></DIV></BODY></HTML>