<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, "Chris Foulston" <<a href="mailto:chris@onebrightspace.com">chris@onebrightspace.com</a>> wrote:<br><br><div style="word-wrap:break-word">Hi all,<div><br>
</div><div>I'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 "rotation: 0" 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'm not sure this is possible?</div><div><br></div><div>Here'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">"default"</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">"/resources/images/icons/${icon}</span><span style="color:#a800c4">.png"</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">"#6CD0C7"</span>,</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
strokeColor: <span style="color:#a800c4">"#264396"</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">"default"</span>])),</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"> <span style="color:#a800c4">"select"</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">"select"</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>