rem:  var nodeType = this.getNodeType(geometry, style); var node = this.nodeFactory(geometry.id, nodeType); node._featureId = featureId; node._geometryClass = geometry.CLASS_NAME; node._style = style;   node = this.drawGeometryNode(node, geometry); this.root.appendChild(node); this.postDraw(node); 
add: if (style.display != "none") {  var nodeType = this.getNodeType(geometry, style); var node = this.nodeFactory(geometry.id, nodeType); node._featureId = featureId; node._geometryClass = geometry.CLASS_NAME; node._style = style;   node = this.drawGeometryNode(node, geometry); this.root.appendChild(node); this.postDraw(node); } else { node = OpenLayers.Util.getElement(geometry.id); if (node) { node.parentNode.removeChild(node); } } 
context:     drawGeometry: function(geometry, style, featureId) {        var className = geometry.CLASS_NAME;        if ((className == "OpenLayers.Geometry.Collection") ||            (className == "OpenLayers.Geometry.MultiPoint") ||            (className == "OpenLayers.Geometry.MultiLineString") ||            (className == "OpenLayers.Geometry.MultiPolygon")) {            for (var i = 0; i < geometry.components.length; i++) {                this.drawGeometry(geometry.components[i], style, featureId);            }            return;        };        //first we create the basic node and add it to the root        var nodeType = this.getNodeType(geometry, style);        var node = this.nodeFactory(geometry.id, nodeType);        node._featureId = featureId;        node._geometryClass = geometry.CLASS_NAME;        node._style = style;                //now actually draw the node, and style it        node = this.drawGeometryNode(node, geometry);        this.root.appendChild(node);        this.postDraw(node);    },
meta: 1027	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1027/2931cd3065120b465a9692084b0e36bd745c6f57/Elements.js/buggy/lib/OpenLayers/Renderer/Elements.js