OpenLayers OpenLayers

Changeset 5749

Show
Ignore:
Timestamp:
01/15/08 11:53:21 (1 year ago)
Author:
crschmidt
Message:

Fix to SVG renderer. (See #1274)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/crschmidt/osm/lib/OpenLayers/Renderer/SVG.js

    r5743 r5749  
    331331        var x = (geometry.x / resolution + this.left); 
    332332        var y = (this.top - geometry.y / resolution); 
    333  
     333         
    334334        if (this.inValidRange(x, y)) {  
    335335            node.setAttributeNS(null, "cx", x); 
     
    337337            node.setAttributeNS(null, "r", radius); 
    338338        } else { 
    339             this.root.removeChild(node); 
     339            if (node.parentNode) { 
     340                this.root.removeChild(node); 
     341            }     
    340342        }     
    341              
    342343    }, 
    343344