fixed positioning of rotated graphics after zoom change. r=tschaub (closes #2733)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10639 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
ahocevar
2010-08-19 15:51:19 +00:00
parent 7993fc177b
commit 0d6658f52d

View File

@@ -294,7 +294,7 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {
// additional rendering for rotated graphics or symbols
var rotation = style.rotation;
if (rotation !== node._rotation) {
if ((rotation !== undefined || node._rotation !== undefined)) {
node._rotation = rotation;
if (style.externalGraphic) {
this.graphicRotate(node, xOffset, yOffset, style);