<html><body bgcolor="#FFFFFF"><div>Andreas, thanks for your response, I'm using 2.10 - I'll give trunk a whirl an see if that fixes things. I did have a look in trac for such a bug but didn't find anything recent.</div><div><br></div><div>Chris<br><br>Sent from my iPhone</div><div><br>On 8 Apr 2011, at 19:03, Andreas Hocevar &lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div><p>What version of OpenLayers are you using? This issue should be fixed in trunk.</p>
<p>Regards,<br>
Andreas.</p>
<p></p><blockquote type="cite">On Apr 8, 2011 5:16 PM, "Chris Foulston" &lt;<a href="mailto:chris@onebrightspace.com"><a href="mailto:chris@onebrightspace.com">chris@onebrightspace.com</a></a>&gt; 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">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphicWidth: <span style="color:#2b00ff">26</span>,</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphicHeight: <span style="color:#2b00ff">32</span>,</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphicOpacity: <span style="color:#2b00ff">1</span>,</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphicXOffset: <span style="color:#2b00ff">-13</span>,</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphicYOffset: <span style="color:#2b00ff">-32</span>,</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fillColor: <span style="color:#a800c4">"#6CD0C7"</span>,</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strokeColor: <span style="color:#a800c4">"#264396"</span>,</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strokeWidth: <span style="color:#2b00ff">3</span>,</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rotation: <span style="color:#2b00ff">0</span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }, 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">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rotation: <span style="color:#2b00ff">10</span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }, 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">&nbsp; &nbsp; &nbsp; &nbsp; });</div></div><div><br></div>
<div><br><div>
<div>Thanks,<br><font color="#888888">Chris&nbsp;</font></div></div></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org"><a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a></a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank"><a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a></a><br>
<br></blockquote><p></p>
</div></blockquote></body></html>