Reverted a part of r10976 which removed code that is still needed. Thanks cmoullet for spotting this. r=me (closes #2985)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11018 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -329,11 +329,17 @@ OpenLayers.Renderer.SVG = OpenLayers.Class(OpenLayers.Renderer.Elements, {
|
||||
if ((rotation !== undefined || node._rotation !== undefined) && pos) {
|
||||
node._rotation = rotation;
|
||||
rotation |= 0;
|
||||
var metrics = this.symbolMetrics[id];
|
||||
node.firstChild.setAttributeNS(null, "transform", "rotate("
|
||||
+ rotation + " "
|
||||
+ metrics[1] + " "
|
||||
+ metrics[2] + ")");
|
||||
if (node.nodeName !== "svg") {
|
||||
node.setAttributeNS(null, "transform",
|
||||
"rotate(" + rotation + " " + pos.x + " " +
|
||||
pos.y + ")");
|
||||
} else {
|
||||
var metrics = this.symbolMetrics[id];
|
||||
node.firstChild.setAttributeNS(null, "transform", "rotate("
|
||||
+ rotation + " "
|
||||
+ metrics[1] + " "
|
||||
+ metrics[2] + ")");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user