code: function(feature, style) {
          if(style == null) {
              style = feature.style;
          }
          if (feature.geometry) {
              var bounds = feature.geometry.getBounds();
              if(bounds) {
                  var worldBounds;
                  if (this.map.baseLayer && this.map.baseLayer.wrapDateLine) {
                      worldBounds = this.map.getMaxExtent();
                  }
                  if (!bounds.intersectsBounds(this.extent, {worldBounds: worldBounds})) {
                      style = {display: "none"};
                  } else {
                      this.calculateFeatureDx(bounds, worldBounds);
                  }
                  var rendered = this.drawGeometry(feature.geometry, style, feature.id);
                  if(style.display != "none" && style.label && rendered !== false) {
  
                      var location = feature.geometry.getCentroid(); 
                      if(style.labelXOffset || style.labelYOffset) {
                          var xOffset = isNaN(style.labelXOffset) ? 0 : style.labelXOffset;
                          var yOffset = isNaN(style.labelYOffset) ? 0 : style.labelYOffset;
                          var res = this.getResolution();
                          location.move(xOffset*res, yOffset*res);
                      }
                      this.drawText(feature.id, style, location);
                  } else {
                      this.removeText(feature.id);
                  }
                  return rendered;
              }
          }
      }
docs: Method: drawFeature
  Draw the feature.  The optional style argument can be used
  to override the feature's own style.  This method should only
  be called from layer.drawFeature().
  
  Parameters:
  feature - {<OpenLayers.Feature.Vector>}
  style - {<Object>}
  
  Returns:
  {Boolean} true if the feature has been drawn completely, false if not,
  undefined if the feature had no geometry