<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>OPENLAYERS LayerChange</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hi,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I try to make it, but it doesn't work. My layer looks like this:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">var zielrichtung = new OpenLayers.Layer.WMS("Zielrichtung",urlArray, </FONT>
<BR> <FONT SIZE=2 FACE="Arial">{map:mapFile,layers:layerName,format:"image/png",EXCEPTIONS:"application/vnd.ogc.se_inimage"},</FONT>
<BR> <FONT SIZE=2 FACE="Arial">{singleTile: true, ratio:1},</FONT>
<BR> <FONT SIZE=2 FACE="Arial">"visibilitychanged": function() {</FONT>
<BR><FONT SIZE=2 FACE="Arial"> alert("visibility changed");</FONT>
<BR><FONT SIZE=2 FACE="Arial"> }</FONT>
<BR> <FONT SIZE=2 FACE="Arial">);</FONT>
<BR>
<BR><FONT SIZE=2 FACE="Arial">zielrichtung.setIsBaseLayer(false);</FONT>
<BR><FONT SIZE=2 FACE="Arial">map.addLayer(zielrichtung);</FONT>
<BR><FONT SIZE=2 FACE="Arial">zielrichtung.setVisibility(false);</FONT>
<BR>
<BR><FONT SIZE=2 FACE="Arial">var sld_zRichtung = url_ziel+"indikator="+indikator1;</FONT>
<BR><FONT SIZE=2 FACE="Arial">zielrichtung.mergeNewParams({SLD:sld_zRichtung});</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">But it doesn't work. But where is my mistake. I don't know what to do now. Please can somebody give me a tip?</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Greetings</FONT>
<BR><FONT SIZE=2 FACE="Arial">Hanno Rahn</FONT>
</P>
<P><FONT FACE="Arial">------------------------------------------</FONT>
<BR><FONT FACE="Arial">Hanno Rahn, Dipl.-Ing. (FH) Geoinformatik</FONT>
<BR><FONT FACE="Arial">ZHAW Zürcher Hochschule für Angewandte Wissenschaften Umwelt und Natürliche Ressourcen </FONT>
<BR><FONT FACE="Arial">Fachstelle Geoinformatik </FONT>
<BR><FONT FACE="Arial">Grüental, Postfach CH-8820 Wädenswil </FONT>
<BR><FONT FACE="Arial">Tel +41 (0)58 934 5592</FONT>
<BR><FONT FACE="Arial">Fax +41 (0)58 934 5580 </FONT>
<BR><FONT FACE="Arial">hanno.rahn@zhaw.ch</FONT>
<BR><A HREF="http://www.iunr.zhaw.ch/geoinformatik"><U><FONT COLOR="#0000FF" FACE="Arial">www.iunr.zhaw.ch/geoinformatik</FONT></U></A>
</P>
<P><FONT FACE="Arial"> </FONT>
<BR><FONT FACE="Arial"> </FONT>
</P>
</BODY>
</HTML>