OpenLayers OpenLayers

Changeset 7672

Show
Ignore:
Timestamp:
08/01/08 17:49:44 (4 months ago)
Author:
ahocevar
Message:

do not ignore style.rotation if set to 0 any more. r=crschmidt (closes #1654)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Renderer/SVG.js

    r7671 r7672  
    268268            } 
    269269 
    270             if (style.rotation && pos) { 
     270            if (typeof style.rotation != "undefined" && pos) { 
    271271                var rotation = OpenLayers.String.format( 
    272272                    "rotate(${0} ${1} ${2})", [style.rotation, pos.x, pos.y]); 
  • trunk/openlayers/lib/OpenLayers/Renderer/VML.js

    r7634 r7672  
    254254 
    255255        // additional rendering for rotated graphics or symbols 
    256         if (style.rotation) { 
     256        if (typeof style.rotation != "undefined") { 
    257257            if (style.externalGraphic) { 
    258258                this.graphicRotate(node, xOffset, yOffset);