<!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.7651.59">
<TITLE>PropertyStyles not working in IE7</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi everyone,</FONT>

<BR><FONT SIZE=2 FACE="Arial">I try to create a vector map with selectable polygons. Therefore I would like to define a default style and a select style. I tried to adapt the code, which is documented in </FONT><A HREF="http://trac.openlayers.org/wiki/Styles"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://trac.openlayers.org/wiki/Styles</FONT></U></A><FONT SIZE=2 FACE="Arial"> under &quot;Using PropertyStyles&quot;, to my needs:</FONT></P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">var gemSymbolizer = new OpenLayers.Util.applyDefaults(</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">{</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">);</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">This works fine in FF, but in IE7 I get an &quot;Object expeced&quot; error in the &quot;var gemStyle ...&quot; section. Am I doing something wrong?</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Thanks for any hints</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Peter</FONT>
</P>
<BR>

<P><B><FONT SIZE=1 FACE="Arial">Mag. Peter Sykora<BR>
</FONT></B><FONT SIZE=1 FACE="Arial">Amt der Oö. Landesregierung<BR>
Direktion Straßenbau und Verkehr<BR>
Abteilung Geoinformation und Liegenschaft - Gruppe DORIS<BR>
4021 Linz&nbsp; &#8226;&nbsp; Bahnhofplatz 1<BR>
</FONT>

<BR><B><FONT COLOR="#9C9D9F" SIZE=1 FACE="Arial">Tel.:</FONT></B>&nbsp;&nbsp; <FONT SIZE=1 FACE="Arial">(+43 732) 77 20-12627<BR>
</FONT><B><FONT COLOR="#9C9D9F" SIZE=1 FACE="Arial">Fax:</FONT></B>&nbsp;&nbsp;&nbsp; <FONT SIZE=1 FACE="Arial">(+43 732) 77 20-212888<BR>
</FONT>

<BR><B><FONT COLOR="#9C9D9F" SIZE=1 FACE="Arial">E-Mail:</FONT></B> <FONT COLOR="#000000" SIZE=1 FACE="Arial">Peter.Sykora@ooe.gv.at<BR>
</FONT><B><FONT COLOR="#9C9D9F" SIZE=1 FACE="Arial">Büro:</FONT></B>&nbsp;&nbsp; <FONT COLOR="#000000" SIZE=1 FACE="Arial">DORIS.GeoL.post@ooe.gv.at<BR>
</FONT><B><FONT COLOR="#9C9D9F" SIZE=1 FACE="Arial">Internet:</FONT></B><A HREF="http://www.land-oberoesterreich.gv.at"><U><FONT COLOR="#0000FF" SIZE=1 FACE="Arial">www.land-oberoesterreich.gv.at</FONT></U></A><B></B>

<BR><FONT SIZE=1 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><A HREF="file://www.doris.eu"><U><FONT COLOR="#0000FF" SIZE=1 FACE="Arial">www.doris.eu</FONT></U></A><BR>
<B><FONT COLOR="#9C9D9F" SIZE=1 FACE="Arial">DVR:</FONT></B>&nbsp;&nbsp;&nbsp; <FONT SIZE=1 FACE="Arial">0069264<BR>
</FONT>

<BR><FONT SIZE=1 FACE="Arial">Der Austausch von Nachrichten mit dem oben angeführten Absender via E-Mail dient ausschließlich Informationszwecken. Rechtsgültige Erklärungen dürfen über dieses Medium nur im Wege von offiziellen Postfächern (in unserem Fall über </FONT><FONT COLOR="#000000" SIZE=1 FACE="Arial">DORIS.GeoL.post@ooe.gv.at</FONT><FONT SIZE=1 FACE="Arial">) übermittelt werden.</FONT></P>

</BODY>
</HTML>