<p>What version of OpenLayers are you using? This issue should be fixed in trunk.</p>
<p>Regards,<br>
Andreas.</p>
<p><blockquote type="cite">On Apr 8, 2011 5:16 PM, &quot;Chris Foulston&quot; &lt;<a href="mailto:chris@onebrightspace.com">chris@onebrightspace.com</a>&gt; wrote:<br><br><div style="word-wrap:break-word">Hi all,<div><br>
</div><div>I&#39;m using a style with a rotation as my hover effect for features on my map but am having some problems with IE7.</div><div><br></div><div>If I do not declare a rotation in my default style IE errors when the hover ends after rotating the pin. Therefore I put a &quot;rotation: 0&quot; in the default style which fixes this issue. Now unfortunately my other geometries (lines, polygons) error with any mention of rotation. I thought rotation was only meant to affect points but this does not seem to be the case with IE7. Any ideas to get round this and still use rotation.</div>
<div><br></div><div>To get around this I was going to write a style rule based on the features geometry type but after looking at various tickets I&#39;m not sure this is possible?</div><div><br></div><div>Here&#39;s my offending code - any suggestions much appreciated.</div>
<div><br></div><div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="color:#cc0000">new</span> OpenLayers.StyleMap({</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
            <span style="color:#a800c4">&quot;default&quot;</span>: <span style="color:#cc0000">new</span> OpenLayers.Style(OpenLayers.Util.applyDefaults({</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
                externalGraphic: <span style="color:#a800c4">&quot;/resources/images/icons/${icon}</span><span style="color:#a800c4">.png&quot;</span>,</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
                graphicWidth: <span style="color:#2b00ff">26</span>,</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">                graphicHeight: <span style="color:#2b00ff">32</span>,</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">                graphicOpacity: <span style="color:#2b00ff">1</span>,</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
                graphicXOffset: <span style="color:#2b00ff">-13</span>,</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">                graphicYOffset: <span style="color:#2b00ff">-32</span>,</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">                fillColor: <span style="color:#a800c4">&quot;#6CD0C7&quot;</span>,</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
                strokeColor: <span style="color:#a800c4">&quot;#264396&quot;</span>,</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">                strokeWidth: <span style="color:#2b00ff">3</span>,</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">                rotation: <span style="color:#2b00ff">0</span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
            }, OpenLayers.Feature.Vector.style[<span style="color:#a800c4">&quot;default&quot;</span>])),</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">            <span style="color:#a800c4">&quot;select&quot;</span>: <span style="color:#cc0000">new</span> OpenLayers.Style(OpenLayers.Util.applyDefaults({</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">                rotation: <span style="color:#2b00ff">10</span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
            }, OpenLayers.Feature.Vector.style[<span style="color:#a800c4">&quot;select&quot;</span>]))</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">        });</div></div><div><br></div>
<div><br><div>
<div>Thanks,<br><font color="#888888">Chris </font></div></div></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br></blockquote></p>