| 125 | | //first we create the basic node and add it to the root |
|---|
| 126 | | var nodeType = this.getNodeType(geometry, style); |
|---|
| 127 | | var node = this.nodeFactory(geometry.id, nodeType); |
|---|
| 128 | | node._featureId = featureId; |
|---|
| 129 | | node._geometryClass = geometry.CLASS_NAME; |
|---|
| 130 | | node._style = style; |
|---|
| 131 | | |
|---|
| 132 | | //now actually draw the node, and style it |
|---|
| 133 | | node = this.drawGeometryNode(node, geometry); |
|---|
| 134 | | this.root.appendChild(node); |
|---|
| 135 | | this.postDraw(node); |
|---|
| | 125 | if (style.display != "none") { |
|---|
| | 126 | //first we create the basic node and add it to the root |
|---|
| | 127 | var nodeType = this.getNodeType(geometry, style); |
|---|
| | 128 | var node = this.nodeFactory(geometry.id, nodeType); |
|---|
| | 129 | node._featureId = featureId; |
|---|
| | 130 | node._geometryClass = geometry.CLASS_NAME; |
|---|
| | 131 | node._style = style; |
|---|
| | 132 | |
|---|
| | 133 | //now actually draw the node, and style it |
|---|
| | 134 | node = this.drawGeometryNode(node, geometry); |
|---|
| | 135 | this.root.appendChild(node); |
|---|
| | 136 | } else { |
|---|
| | 137 | node = OpenLayers.Util.getElement(geometry.id); |
|---|
| | 138 | if (node) { |
|---|
| | 139 | node.parentNode.removeChild(node); |
|---|
| | 140 | } |
|---|
| | 141 | } |
|---|