Ticket #1066: Renderer.Elements.patch
| File Renderer.Elements.patch, 1.0 kB (added by pgiraud, 1 year ago) |
|---|
-
/home/pierre/public_html/openlayers_svn/lib/OpenLayers/Renderer/Elements.js
old new 127 127 node._featureId = featureId; 128 128 node._geometryClass = geometry.CLASS_NAME; 129 129 node._style = style; 130 this.root.appendChild(node); 130 131 var isChild = false; 132 for (var i = 0; i < this.root.childNodes.length; i++) { 133 if (this.root.childNodes[i] == node) { 134 var isChild = true; 135 } 136 } 137 // append the node to root 138 // if it already is a child, keep it in place instead 139 if (!isChild) { 140 this.root.appendChild(node); 141 } 131 142 132 143 //now actually draw the node, and style it 133 144 this.drawGeometryNode(node, geometry);
