Related question—<div><br></div><div>Say that I have multiple objects that I&#39;d like to be able to rotate independently of each other. It seems like the tool for the job is the substitution engine found in OpenLayers.Style. Currently, I&#39;m just setting the symbolizer directly on each of my features, so my question is, is it possible to take advantage of OpenLayers.Style without having to deal with the complication and complexity of OpenLayers.StyleMap?</div>

<div><br></div><div>I attempted to wrap my style hashes in the OpenLayers.Style class and then pass them into the Feature constructor as before, but it didn&#39;t display anything at all.</div><div><br></div><div>As an alternative, I could just create a per-Feature clone of the style hash (&quot;symbolizer&quot;), and inject my rotation parameter directly into each one, but this seem inelegant.</div>

<div><br></div><div>What would be the best course of action?</div><div><br></div><div><br></div><div><br><div class="gmail_quote">On Wed, May 12, 2010 at 3:23 AM, Andreas Hocevar <span dir="ltr">&lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">This sounds like an issue we had in OpenLayers 2.9, but was fixed in 2.9.1. Make sure you are using the latest version.<br>


<br>
Regards,<br>
Andreas.<br>
<div><div></div><div class="h5"><br>
On May 12, 2010, at 02:16 , Mike Purvis wrote:<br>
<br>
&gt; Hey,<br>
&gt;<br>
&gt; I&#39;m having an issue with specifying rotation for one of my features. It&#39;s a point feature with a externalGraphic specified, and the center of rotation of the feature seems to be initially set to the feature&#39;s own Point.<br>


&gt;<br>
&gt; However, when I programmatically move the feature, the center of rotation doesn&#39;t move with it, and the feature&#39;s rotation against an external center causes it to be way off-position.<br>
&gt;<br>
&gt; I&#39;ve tried implementing the move both by updating the x and y fields directly in the Point object itself, and also by using the Feature.move function. Neither has the desired effect—using the Web Inspector, I can clearly see the SVG element and the rotation is being specified in (angle, cx, cy) form.<br>


&gt;<br>
&gt; As a last resort, I&#39;m willing to use external JavaScript to find the element and manually insert the rotation which I require, but is there some way to do it &quot;properly&quot; using OpenLayers&#39; own rotation stylings?<br>


&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Mike<br>
</div></div>&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
&gt; <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
<font color="#888888"><br>
<br>
<br>
--<br>
Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br><a href="http://uwmike.com">http://uwmike.com</a><br>
</div>