<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=iso-8859-1>
<META content="MSHTML 6.00.6002.18407" name=GENERATOR></HEAD>
<BODY id=MailContainerBody
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px" leftMargin=0
topMargin=0 CanvasTabStop="true" name="Compose message area">
<DIV><FONT face=Arial size=2>You're on the right track.</FONT></DIV>
<DIV><FONT face=Arial size=2>If you have an SLD file that is web accessible by
the geoserver instance, then you can provide a link to that via the SLD
parameter</FONT></DIV>
<DIV><FONT face=Arial size=2>If you are doing any kind of dynamic styling and
changing portion of the SLD and the SLD is not overly complex (ie long) then you
can use the SLDBODY parameter to pass an encoded SLD
defination.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>FOR EXAMPLE:</FONT></DIV>
<DIV><FONT face=Arial
size=2>layer.mergeNewParams({sld:'http://my.com/cool.sld'});</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Matt Priour</FONT></DIV>
<DIV><FONT face=Arial size=2>Kestrel Computer Consulting</FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=allouch.hassane@gmail.com
href="mailto:allouch.hassane@gmail.com">hassane allouch</A> </DIV>
<DIV><B>Sent:</B> Saturday, May 28, 2011 10:56 AM</DIV>
<DIV><B>To:</B> <A title=Users@geoext.org
href="mailto:Users@geoext.org">Users@geoext.org</A> </DIV>
<DIV><B>Subject:</B> [Users] change the sld in mapPanel</DIV></DIV></DIV>
<DIV><BR></DIV>
<DIV dir=ltr>Hi,<BR><BR><BR>i published a layer with geoserver 2.1.0. by
default i choose the style polygon, after using it in a map panel. By clicking
on a bouton i want to change just the sld of the layer not the layer.<BR><BR>i
used layer.mergeNewParams({viewparams: ...) to change the url, now i want to
change just the sld<BR><BR>thanks<BR></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Users mailing
list<BR>Users@geoext.org<BR>http://www.geoext.org/cgi-bin/mailman/listinfo/users<BR></BODY></HTML>