Implemented rotation of externalGraphic vector point features. r=tschaub (closes #1433)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7324 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -222,6 +222,12 @@ OpenLayers.Renderer.SVG = OpenLayers.Class(OpenLayers.Renderer.Elements, {
|
||||
} else {
|
||||
node.setAttributeNS(null, "r", style.pointRadius);
|
||||
}
|
||||
|
||||
if (style.rotation) {
|
||||
var rotation = OpenLayers.String.format(
|
||||
"rotate(${0} ${1} ${2})", [style.rotation, x, y]);
|
||||
node.setAttributeNS(null, "transform", rotation);
|
||||
}
|
||||
}
|
||||
|
||||
if (options.isFilled) {
|
||||
|
||||
Reference in New Issue
Block a user