<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=750423909-12082010><FONT color=#0000ff
size=2 face=Arial>As far as I know from MapServer, you can't use a relative
url.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=750423909-12082010><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=750423909-12082010><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=750423909-12082010><FONT color=#0000ff
size=2 face=Arial>example from <A
href="http://mapserver.org/ogc/sld.html">http://mapserver.org/ogc/sld.html</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=750423909-12082010><PRE><A href="http://www2.dmsolutions.ca/cgi-bin/mswms_world?SERVICE=WMS&VERSION=1.1.1&Request=GetMap&LAYERS=WorldGen_Outline&SLD=http://www2.dmsolutions.ca/msapps/world_testdata/tests/sld_tests/sld_line_simple.xml">http://www2.dmsolutions.ca/cgi-bin/mswms_world?SERVICE=WMS&VERSION=1.1.1&Request=GetMap
&LAYERS=WorldGen_Outline&SLD=http://www2.dmsolutions.ca/msapps/world_testdata/tests
/sld_tests/sld_line_simple.xml</A></PRE><PRE>Arnd</PRE></SPAN></DIV><BR>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Von:</B> users-bounces@openlayers.org
[mailto:users-bounces@openlayers.org] <B>Im Auftrag von </B>Fernando
Ribeiro<BR><B>Gesendet:</B> Donnerstag, 12. August 2010 10:27<BR><B>An:</B>
users@openlayers.org<BR><B>Betreff:</B> [OpenLayers-Users] SLD over
WMS<BR></FONT><BR></DIV>
<DIV></DIV>Hi list,<BR><BR>I am trying to change the default style of a WMS
layer, with a new SLD style. So far I tried the "SLD:", direcly on layer
options, and layer.mergeNewParams, without much success.<BR><BR>Here's the layer
I want to change:<BR><BR>var fires_24h = new OpenLayers.Layer.WMS(
<BR> "Fires 24h",
<BR> "<A
href="http://firefly.geog.umd.edu/wms/wms">http://firefly.geog.umd.edu/wms/wms</A>?",
<BR> {
<BR>
layers: 'fires24',<BR>
sld: './SLD/fires.sld', <BR>
srs: 'EPSG:4326',
<BR>
format: 'image/png', <BR>
tiled: 'true', <BR>
transparent: true
<BR> },
<BR> {isBaseLayer:
false} <BR> );<BR clear=all><BR>Can anyone
try and help me?<BR><BR>Thank you!<BR><BR>-- <BR>Fernando<BR></BODY></HTML>